Errors All docs

API Errors

Check the HTTP status before reading the body. Errors use the same envelope with English keys; match on error.code, never on the human-readable message.

StatusWhat to do
400Check parameters and input formats.
401Check that your API key is present and valid.
404Check the route and the requested identifier.
429Wait for Retry-After before retrying.
5xxRetry with capped exponential backoff. Contact support if it persists.

Handle quota and credit errors separately from transient failures. When credits run out, check your dashboard balance instead of retrying.