Skip to main content
Errors return JSON with an error string.

Status codes

Client recommendations

  • Log the HTTP method, path, status code, and error value.
  • Avoid exposing raw error strings directly to end users.
  • Retry network failures and safe 5xx cases with the same Idempotency-Key for mutating requests.
  • Do not retry 400, 403, or 404 without changing the request or credentials.

Example