Theme

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

StatusMeaning
200 - OKThe request succeeded.
201 - CreatedThe resource was successfully created.
400 - Bad RequestA required parameter is missing.
401 - UnauthorizedThe JWT access token is missing, expired, or invalid. The error message is Not Authorized.
404 - Not FoundThe requested resource does not exist or does not belong to your account. The error message is Record not found.
422 - Unprocessable EntityThe request was well-formed but could not be processed (e.g., validation failures). The message includes the details.
500 - Internal Server ErrorSomething went wrong on Localize's end (these are rare).
Previous
Authentication