Introduction
Errors
The Localize API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, etc.), and codes in the 5xx range indicate an error with Localize's servers (these are rare).
Error response format
The body of any error response in the 4xx range will be a JSON object with a single error key containing a human-readable message:
{ "error": "message" }HTTP status codes
| Status | Meaning |
|---|---|
200 - OK | The request succeeded. |
201 - Created | The resource was successfully created. |
400 - Bad Request | A required parameter is missing. |
401 - Unauthorized | The JWT access token is missing, expired, or invalid. The error message is Not Authorized. |
404 - Not Found | The requested resource does not exist or does not belong to your account. The error message is Record not found. |
422 - Unprocessable Entity | The request was well-formed but could not be processed (e.g., validation failures). The message includes the details. |
500 - Internal Server Error | Something went wrong on Localize's end (these are rare). |