Errors

In this guide, we will talk about what happens when something goes wrong while you work with the API. Let's look at some status codes and error types you might encounter.

You can tell if your request was successful by checking the status code when receiving an API response. If a response comes back unsuccessful, you can use the error type and error message to figure out what has gone wrong and do some rudimentary debugging (before contacting support).


HTTP Response Codes

We use conventional HTTP response codes to indicate the success or failure of an API request. The table below contains a summary of the typical response codes:

CodeDescription
200Everything is ok.
400Valid data was given but the request has failed.
401No valid API Key was given.
403Action is Forbidden.
404The request resource could not be found.
422The payload has missing required parameters or invalid data was given.
429Too many attempts.
500Request failed due to an internal error.
503API is offline for maintenance.