Errors
Error payload
In the event of an error, a non-200 error code will be returned, and the response body will be a json object with three fields:
Example of error response:
json
{
"result": "error",
"reason": "ObjectNotFound",
"message": "Object by specified ID not found"
}result– which will always be "error".reason– which will be one of the string constants.message– a human-readable string with additional error information.
HTTP error codes
| Error Code | Meaning |
|---|---|
| 400 | Bad Request – Your request is invalid. |
| 401 | Unauthorized – Your API key or signature is wrong. |
| 403 | Forbidden – Not enough permissions. |
| 404 | Not Found – The specified page could not be found. |
| 405 | Method Not Allowed – You tried to access endpoint with an invalid method. |
| 500 | Internal Server Error – We had a problem with our server. |
| 503 | Service Unavailable – We're temporarily offline for maintenance. |