2xx range
indicate success, 4xx indicates a problem with the request, and 5xx indicates a
problem on our end.
Error body
Every error the API renders,401 and 429 included, has the same body: an errors array. That includes a path that matches no endpoint (404) and a known path called with a method it doesn’t take (405, with an Allow header listing the methods it does). One response comes from in front of the API and is plain text: the per-IP flood limit (429).
A validation failure (
422) lists one error per field. A 429 also carries
retry_in_seconds, the same number as the Retry-After header (see
Rate limits).
Codes
New codes can appear at any time; treat an unknown one by its HTTP status.
Request mistakes we diagnose
A few mistakes are common enough when wiring up a new client that the API names them instead of returning a generic failure:
Each endpoint’s reference page lists the errors it returns.