Skip to main content

Error codes

The API answers with standard HTTP status codes. An error also carries a JSON body. See authentication for key errors and rate limits for throttling.

Error body

Every error returns this shape.

Error body

{
  "error": "Rate limit exceeded",
  "status": 429
}

Status codes per page

Each page in a crawl result carries the HTTP status the target site returned. It says nothing about your request to Spider.

Status codeDescriptionConsumes creditsCauseResolution
2xxSuccessYesThe target page was fetched.Nothing to do.
404Target page not foundYesThe URL does not exist on the target site.Check the URL and that the page still exists.
403ForbiddenYesThe target site blocked the request.Turn on proxy_enabled or set request to "browser" for JavaScript rendering.
401UnauthorizedYesThe target page needs a login.Use automation_scripts to run the login flow first.
400Bad requestYesThe target server rejected the request.Check that the URL is well formed and reachable.
429Rate limit exceededYesThe target site is rate limiting requests.Add a delay between requests or lower concurrency.
500Server errorNoThe target server hit an internal error.Retry. If it keeps failing, the target site itself is down.
503Service unavailableNoThe target server is temporarily unavailable.Retry after a short delay. The site may be under maintenance.

Status codes for the request

The HTTP status of the response to your request. It tells you whether Spider accepted and ran it.

Status codeDescriptionCauseResolution
200SuccessSpider ran the request.Nothing to do.
204No content returnedThe crawl finished but found no content.Check that the URL returns content. Try another return_format.
400Bad request, check request parametersInvalid parameters or a malformed JSON body.Check the body for a missing required field such as url, or a bad value.
401Authentication errorMissing, invalid, or expired API key.Check the Authorization header against the authentication page.
402Payment requiredNo credits left or no active subscription.Add credits or upgrade from the dashboard.
413Payload too largeThe request body is over the size limit.Send fewer URLs or parameters per request.
429Rate limit exceededToo many requests in the current window.Back off exponentially. The rate limits page lists your plan's limits.
500Server errorAn unexpected error on Spider's side.Retry. If it keeps failing, contact support.
503Service unavailableSpider is temporarily unavailable.Retry after a short delay. Check the status page for an incident.