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
| Status | error.code | Meaning |
|---|---|---|
| 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. |
| 400 | bad_request | Check required fields, URL and widget custom data. Correct the request before resubmitting. |
| 401 | invalid_key | Missing or revoked API key. |
| 402 | balance_empty | Out of credit. Top up from the dashboard. |
| 402 | key_budget_exceeded / spend_cap_reached | The key or workspace monthly credit cap has been reached. Review its configured budget. |
| 402 | pass_expired | The 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. |
| 403 | email_unverified / forbidden | Verify your account email for live work, or review key operations, gates and access policy. |
| 403 | forbidden_target | This target host isn't permitted by our acceptable-use policy. |
| 404 | not_found | Unknown, retained-out or inaccessible request. Check key scope and allowed gates. |
| 409 | conflict | That idempotency key is already processing. Retry the same submission shortly. |
| 422 | idempotency_key_reused | The idempotency key belongs to a different request body. Recover using the original body; use a new key only for new work. |
| 422 | unknown_sitekey | The sitekey/url pair didn't resolve to a live gate. |
| 429 | rate_limited | Above your workspace's req/s limit. Back off and retry. |
| 502 | user_proxy_error | The 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. |
| 503 | maintenance | Solving is paused for platform maintenance. Not billed — retry shortly. |
| 503 | queue_full | New work was not admitted. Wait for Retry-After before retrying. |
| 503 | result_unavailable | The 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. |
| 503 | target_unavailable | Too many of your recent solves for this target failed, so attempts are paused briefly. Check the target and your proxy, then retry. Not billed. |
| 504 | solve_timeout | The solve failed to clear the gate within its budget. Not billed. The failed solve stays terminal; a new submission starts new work. |
{
"error": {
"code": "unknown_sitekey",
"message": "No live Turnstile gate at that sitekey + url.",
"billed": false
}
}{
"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