Find a section & browse all pages

Errors

// conventional HTTP status codes + a typed error body

Read the solve status as well as the HTTP status. 202 returns a pending solve after async submission or when the synchronous HTTP wait ends; 200 can return a solved result, a retrieved pending or failed result, or an idempotent replay. Non-2xx responses carry error.code; a proxy error can be 502. Poll a pending solve's id rather than submitting another request.

HTTP & API error reference

Statuserror.codeMeaning
200—Solve returned. Check status before using token.
202—Solve pending, including after the synchronous HTTP wait ends. Retrieve its id until status leaves pending.
400bad_requestCheck required fields, URL and widget custom data. Correct the request before resubmitting.
401invalid_keyMissing or revoked API key.
402balance_emptyOut of credit. Top up from the dashboard.
402key_budget_exceeded / spend_cap_reachedThe key or workspace monthly credit cap has been reached. Review its configured budget.
402pass_expiredThe unlimited pass this key is attached to has ended. Renew the pass, or switch the key back to credit metering, in the dashboard. Expiry is a hard stop — we never quietly spend your credit balance instead.
403email_unverified / forbiddenVerify your account email for live work, or review key operations, gates and access policy.
403forbidden_targetThis target host isn't permitted by our acceptable-use policy.
404not_foundUnknown, retained-out or inaccessible request. Check key scope and allowed gates.
409conflictThat idempotency key is already processing. Retry the same submission shortly.
422idempotency_key_reusedThe idempotency key belongs to a different request body. Recover using the original body; use a new key only for new work.
422unknown_sitekeyThe sitekey/url pair didn't resolve to a live gate.
429rate_limitedAbove your workspace's req/s limit. Back off and retry.
502user_proxy_errorThe proxy you supplied refused or dropped the connection to the target. Check its credentials, allowlist and egress region — or omit proxy to use our pool. Not billed.
503maintenanceSolving is paused for platform maintenance. Not billed — retry shortly.
503queue_fullNew work was not admitted. Wait for Retry-After before retrying.
503result_unavailableThe unexpired result cannot currently be read. Retry retrieval of the same ID after Retry-After: 1. Its actual error.billed may be true; this is not a refund.
503target_unavailableToo many of your recent solves for this target failed, so attempts are paused briefly. Check the target and your proxy, then retry. Not billed.
504solve_timeoutThe solve failed to clear the gate within its budget. Not billed. The failed solve stays terminal; a new submission starts new work.
422 · error body example
{
  "error": {
    "code": "unknown_sitekey",
    "message": "No live Turnstile gate at that sitekey + url.",
    "billed": false
  }
}
503 · unavailable result example
{
  "error": {
    "code": "result_unavailable",
    "message": "The solve result is unavailable. Retry retrieval using the same solve ID.",
    "billed": true
  }
}

Recover the same request

A network failure or client timeout has an unknown outcome. It does not establish billed: false. Retrieve the known ID, or recover a lost live submission with its original idempotency key and body within 24 hours. A replay rejected before lookup (for example with 429) does not tell you whether the original request was charged. Follow the rate-limit headers and Retry-After guidance before retrying a throttled request. Error envelopes do not currently include the solve ID; retain it from acceptance.

These are our codes. Cloudflare widget errors such as 300030, 600010 and 110200 are a separate namespace indexed at the Turnstile error reference. For repeated failures, send support the request ID and error code. Admission refusals may not appear in retained Requests.

Ready to pour through the gate?

// free sandbox keys · no card required to start