Skip to main content

What HTTP status codes are returned?

Every error carries an HTTP status and a stable error code. Branch on the code, not on the message.

Each error response has an error code and a message written for a person. The codes are:

  • 400 invalid_parameter: a parameter is unknown, malformed or out of range
  • 400 invalid_cursor: the cursor is malformed, has expired or was issued for another key or other filters
  • 401 unauthenticated: no key was sent, or it is not recognised or has been revoked
  • 403 ip_not_allowed, key_paused, country_not_entitled or upgrade_required: see “Why am I receiving a 403 error?”
  • 404 not_found: the path does not exist
  • 405 method_not_allowed: every endpoint is GET
  • 429 rate_limited or quota_exceeded: wait for the Retry-After period
  • 500 internal_error: retry later
  • 503 not_configured or service_unavailable: retry later

New codes may be added. Treat a code you do not recognise as a failure of the HTTP status it arrives with.

Still need help?

If this did not answer your question, get in touch and we will help.

Contact support