Error Codes

The Spider API uses standard HTTP status codes to indicate success or failure. Errors include a JSON response body with details. See Authentication for auth-related errors and Rate Limits for throttling details.

JSON Error Response Format

When an error occurs, the API returns a JSON object with the following structure.

Error Response Body

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

Response Body Status Codes (for pages)

These status codes appear in the response body for each page in the crawl results. They reflect the HTTP status of the target page, not the Spider API request itself.

Status CodeDescriptionConsumes CreditsCauseResolution
2xxSuccessYesThe target page was fetched successfully.No action needed.
404Target page not foundYesThe URL does not exist on the target website.Verify the URL is correct and the page exists.
403ForbiddenYesThe target website blocked the request.Try enabling proxy_enabled or using request mode "chrome" for JavaScript rendering.
401UnauthorizedYesThe target page requires authentication.The target site requires login credentials. Consider using automation_scripts to handle login flows.
400Bad requestYesThe target server rejected the request.Check if the URL is properly formatted and accessible.
429Rate limit exceededYesThe target website is rate limiting requests.Add a delay parameter between requests or reduce concurrency.
500Server errorNoThe target server encountered an internal error.Retry the request. If persistent, the target site may be experiencing issues.
503Service unavailableNoThe target server is temporarily unavailable.Retry after a short delay. The target site may be under maintenance.

HTTP Status Codes for Spider Request

These status codes are returned as the HTTP response status when you send a request to the Spider API. They indicate whether your API request was accepted and processed.

Status CodeDescriptionCauseResolution
200SuccessRequest was processed successfully.No action needed.
204No content returnedThe crawl completed but no content was found.Check if the URL returns content. Try a different return_format.
400Bad request, check request parametersInvalid request parameters or malformed JSON body.Review the request body for missing required fields (e.g., url) or invalid parameter values.
401Authentication errorMissing, invalid, or expired API key.Check your Authorization header. See the authentication docs for correct format.
402Payment requiredInsufficient credits or no active subscription.Add credits to your account or upgrade your plan from the dashboard.
413Payload too largeThe request body exceeds the maximum size limit.Reduce the number of URLs or parameters in a single request.
429Rate limit exceededToo many requests in the current time window.Implement exponential backoff. Check the rate limits page for your plan's limits.
500Server errorAn unexpected error occurred on Spider's servers.Retry the request. If the issue persists, contact support.
503Service unavailableSpider service is temporarily unavailable.Retry after a short delay. Check the status page for any ongoing incidents.