The Zoey API error format and what each HTTP status code means.
Errors come back with an HTTP status code and a JSON body:
{
"messages": {
"error": [
{
"code": 401,
"message": "oauth_problem=token_rejected"
}
]
}
}Status codes
| Status | Meaning |
|---|---|
| 200 OK | The request worked. |
| 201 Created | The record was created. |
| 400 Bad Request | The request was invalid, often a missing required parameter. |
| 401 Unauthorized | No valid access token or API key was sent. |
| 402 Request Failed | The parameters were valid but the request failed. |
| 403 Forbidden | The credentials don't have permission for this request. |
| 404 Not Found | The record or endpoint doesn't exist. |
| 405 Method Not Allowed | The HTTP method isn't allowed on this endpoint. |
| 406 Not Acceptable | The data or headers weren't acceptable (check Accept). |
| 429 Too Many Requests | Too many requests too quickly. Retry with exponential backoff. |
| 500 | Internal error. A blocked User-Agent can also cause it: send a descriptive User-Agent header. |
| 502, 503, 504 | Something went wrong on Zoey's side. These are rare: retry later. |
