We use 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 resulted from the provided information (e.g. a required parameter was missing, a job could not be found,etc.), and codes in the 5xx range indicate an error with our servers.
Success Responses
200 OK
The request was successful
201 ACCEPTED
The request has been accepted for processing
Error Responses
403 FORBIDDEN
The request was refused as the provided authorization credentials do not grant sufficient privileges.
404 NOT FOUND
The resource, such as a Job, could not be found.
422 UNPROCESSABLE
The request was unable to be processed due to it containing invalid parameters. The response will contain a JSON object containing one or more errors relating to the invalid parameters. For example, if when creating a Job you omitted the required job_description field, you would receive a response like:
{
"errors": {
"job_description": [
{
"key": "errors.required",
"description": "required"
}
]
}
}
429 TOO MANY REQUESTS
You’ve exceeded your rate limits. By default these are 50 requests per second and 500 requests within a 60 second window. Your code should stop making API requests temporarily when encountering such a response.
500 SERVER ERROR
The request was unable to be processed due to an error with our servers.