Reference

Error reference

All OrbitScraper APIs return consistent JSON error envelopes when requests cannot be fulfilled. Follow the guidelines below to safely handle network interruptions and client errors.

Standard Error Format

Errors always include an actionable code, human-readable message, and diagnostic details.

json
{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Maximum concurrent queries reached for your current plan tier.",
    "details": {
      "request_id": "req_8f10b230",
      "limit": 10,
      "active_jobs": 10,
      "retry_after_seconds": 2
    }
  }
}

Application Error Codes

Error CodeMeaningRecommended Action
400feature_unavailable: Requested search features are temporarily unavailable. Bad request or invalid parameter.Validate field names, types, and allowed enum values before retrying.
401Missing or invalid x-api-key.Send a valid x-api-key header and confirm the key is active.
402insufficient_credits: Insufficient credits.Top up credits or reduce request volume before retrying.
404Job not found for the current tenant or API family.Check the job id, API family, and tenant context before polling again.
429rate_limit_exceeded: Rate limit exceeded; concurrency_limit_exceeded: concurrent request limit exceeded.Back off, spread requests over time, or use a plan with higher limits.
500Internal server error.Safe to retry with backoff.
503upstream_busy: Upstream capacity temporarily unavailable.Retry after a short backoff. This usually indicates a temporary enqueue issue.

HTTP Status Codes

400Bad Request

Missing query parameter 'q', invalid engine, or malformed JSON payload.

401Unauthorized

Missing or invalid 'x-api-key' header. Ensure your key is active in the dashboard.

402Payment Required

Insufficient workspace credits. Upgrade plan or recharge credits to continue.

403Forbidden

Endpoint or required API-key scope is unavailable.

404Not Found

The specified jobId was not found or was submitted under a different account.

409Conflict

Concurrent state conflict or duplicate job creation attempt.

429Too Many Requests

Concurrency limit reached or excessive rapid polling. Back off and retry.

500Internal Server Error

Internal pipeline error. Recover using GET /v1/search/operations/:requestId.

502Bad Gateway

Upstream engine provider failed to respond. Do not resubmit POST; poll status.

504Gateway Timeout

Request acknowledgement timed out. The job may still commit and run safely.

Network Interruption Recovery Best Practices

When submitting scraping jobs over unreliable networks, a connection reset or HTTP 504 timeout does not mean the job failed to queue. The worker may have committed the job and begun execution.

  • Never blindly retry POST requests: Retrying a failed POST without idempotency keys risks consuming additional credits.
  • Use Idempotency-Key headers: Supply a unique UUID in the Idempotency-Key header with every POST. If retried, the API returns the existing job instead of creating a second one.
  • Recover by stable operation ID: Query GET /v1/search/operations/:requestId to safely locate and recover the durable job_id.

Start scraping faster - ask Orbit AI.