Skip to main content

Error format

The API uses standard HTTP status codes and returns errors as JSON:
For async jobs, a job that fails in the background is reported by the poll endpoint (200, task_status: "failed") with a data.error object carrying the same error code plus the http_status the synchronous endpoint would have returned.

Error codes

400 — Bad request

401 — Unauthorized

Missing, invalid or deactivated API key.

402 — Payment required

403 — Forbidden

404 — Not found

413 — Payload too large

429 — Too many requests

500 — Server error

Charges are reverted when a request fails with a server error.

502 / 503