Errors

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

StatusMeaning
200 OKThe request worked.
201 CreatedThe record was created.
400 Bad RequestThe request was invalid, often a missing required parameter.
401 UnauthorizedNo valid access token or API key was sent.
402 Request FailedThe parameters were valid but the request failed.
403 ForbiddenThe credentials don't have permission for this request.
404 Not FoundThe record or endpoint doesn't exist.
405 Method Not AllowedThe HTTP method isn't allowed on this endpoint.
406 Not AcceptableThe data or headers weren't acceptable (check Accept).
429 Too Many RequestsToo many requests too quickly. Retry with exponential backoff.
500Internal error. A blocked User-Agent can also cause it: send a descriptive User-Agent header.
502, 503, 504Something went wrong on Zoey's side. These are rare: retry later.