The error object
A failure is one JSON object with success: false and an error you can branch on.
{
"success": false,
"request_id": "req_41e813f088955c316776",
"error": {
"code": "BLOCKED",
"message": "The site's bot protection (Akamai) refused access.",
"retryable": true,
"doc_url": "https://docs.crawlapi.dev/errors#BLOCKED",
"target_status": 403,
"vendor": "akamai"
}
}A real answer, recorded 2026-11-11.
| Field | Meaning |
|---|---|
code |
the reason code, one of the table below |
message |
one to three sentences for a human or an agent; at most 220 characters |
retryable |
the same request may succeed later; wait for Retry-After first when it is sent |
doc_url |
this code’s row in the table below: what it means and what to do |
target_status |
the HTTP status the site answered with, when it answered |
vendor |
the bot protection that refused the page, when known |
request_id is also in the x-request-id header: quote it in a support ticket.
Every code
How to retry
retryable: true: wait, then retry the same request, afterRetry-Afterwhen sent, otherwise back off from 1 second and stop after 2 or 3 tries.429 RATE_LIMITED:Retry-Afteris the time until the account has room again, and theRateLimitheaders say how much. Retrying sooner spends a request and learns nothing.500 INTERNAL: our side, and nothing was charged. Retry; if it repeats, send therequest_idto support.retryable: false: the request or the page cannot change. Read the flag on the answer, not the code’s column above: a site that asks crawlers to pay isBLOCKEDwithretryable: false, and so is aNO_CONTENTthe page itself decided, a page or document with no structured data forformat=jsonor a document under 15 words.
Not every 422 is the same
Branch on code, not on status
Seven codes share HTTP 422 because the request was valid and the page could not be turned into content: BLOCKED, NO_CONTENT, HOST_NOT_FOUND, LOGIN_REQUIRED, UNSUPPORTED_CONTENT, SCANNED_PDF and TARGET_ERROR. No page failure answers 403 or 415: those statuses are about the caller’s key and body, and a page’s sign-in wall or file type is neither.
Credits
A failure costs 0 credits and writes no charge, including a page that does not exist (NOT_FOUND, GONE), RATE_LIMITED, BLOCKED, TIMEOUT, INTERNAL and a page that could not be read. See Credits.