HTTP status codes & Error messages

How to interpret error information

HTTP status codes

The LingoHub API returns standard HTTP status codes for every request. These codes indicate the success or failure of an API operation.


CodeNameMeaning
200OKThe request was successful.
304Not ModifiedThe resource has not changed since the last request.
400Bad RequestThe request is invalid. Review the accompanying error message for details.
401UnauthorizedAuthentication credentials are missing or incorrect.
403ForbiddenThe server understood the request but refuses to authorize it due to insufficient permissions.
404Not FoundThe requested URI is invalid, or the resource (such as a project) does not exist.
406Not AcceptableThe request specified an invalid format.
429Too Many RequestsThe API rate limit was exceeded. Reduce the frequency of your requests.
500Internal Server ErrorAn unexpected error occurred on the server. Please contact LingoHub Support to investigate the issue.

Error messages

The LingoHub API returns error messages in the format requested (e.g., JSON).

The following example shows an error response in JSON format:


{  
  "error": "The 'page_size' parameter must be between 1 and 100 but was -1"  
}