GetAff
Sign inList my program
API documentation

Errors

All errors share the same shape. Branch your logic on code, never on message.

Shape

400 Bad Request
{
  "error": {
    "code": "invalid_request",
    "message": "Invalid parameter `limit`: Number must be less than or equal to 100"
  }
}

code is stable and part of the contract. message is written for the human debugging: it may be rewritten, translated or clarified at any time. A client that tests the message breaks on the first typo fix.

Codes

Codes
CodeStatusMeaning
invalid_request400A parameter failed validation. The message names which one.
invalid_cursor400The cursor is unreadable. Pass page.nextCursor back verbatim.
unauthorized401No key was sent, or the header is not in Bearer form.
invalid_key401The key is malformed or unknown.
key_revoked401The key existed but has been revoked. Create a new one.
insufficient_scope403The key does not carry the scope this operation requires.
account_suspended403The account is suspended and cannot use the API.
cors_not_supported403Called from a browser origin. This API is called from a server.
not_found404The resource does not exist, or is not public.
rate_limited429Rate limit reached. See Retry-After.
internal_error500A fault on our side. It has been logged.
query_unavailable503The query cannot be served right now — a storage index is building. Retry.
What to retry

429 and 503 are temporary: retry, honouring Retry-After when present. 400, 401, 403 and 404 are not — retrying unchanged returns the same answer.

API — errors — GetAff