Errors & Status Codes
Technical specification for HTTP status codes, RFC 9457 problem documents, error classification, and production retry logic for the Oxylabs Web API.
Status code & retry matrix
Retry logic must be gated strictly on response HTTP status codes. Retrying non-retryable client errors (400, 401, 403, 404) causes identical failures and unnecessary API load.
200 OK
—
Realtime call success. Execution complete; process response body.
No
202 Accepted
—
Async job accepted. Job queued; retrieve via metadata.request_id.
No
400 Bad Request
INVALID_BODY_PROPERTY, MALFORMED_JSON
Validation or malformed payload. Fix parameters in errors[] before resending.
No
401 Unauthorized
— (Empty Body)
Invalid, missing, or revoked API key. Verify Bearer token format and dashboard instance key.
No
403 Forbidden
—
Entitlement restriction. Account lacks access to target route or source.
No
404 Not Found
NOT_FOUND
Route or job ID invalid/expired. Check endpoint path or async request handle.
No
405 Method Not Allowed
METHOD_NOT_ALLOWED
Method other than POST used. Change HTTP request method to POST.
No
408 Request Timeout
—
Realtime scraping timeout. Retry request using exponential backoff.
Yes
413 Payload Too Large
—
Payload or batch size exceeded. Reduce payload size or batch target count.
No
429 Too Many Requests
—
Concurrency limit or quota exhausted. Lower concurrency and apply jittered backoff. Alert operator if persistent.
Rate limit: Yes
Quota: No
500 Internal Error
REQUEST_FAILED_AFTER_TOO_MANY_RETRIES, INTERNAL_ERROR
Upstream failure or faulted scrape. Faulted scrapes are not charged. Retry with backoff.
Yes
503 Service Unavailable
SERVICE_UNAVAILABLE
Service temporarily down. Retry with backoff.
Yes
RFC 9457 Problem documents
When an HTTP error occurs, the Web API returns an RFC 9457 problem document served as application/problem+json.
1. Invalid body property (400 Bad Request)
An invalid storage.url returns VALIDATION_ERROR with errors[].pointer set to #/storage/url. The request is not created.
2. Faulted scrape error (500 Internal Error)
If a scrape fails after all retries, POST /v1/scrape returns an HTTP 500 status with state: "faulted". Faulted scrapes do not consume account quota.
Response schema breakdown
status
integer
HTTP status code.
state
string
Present on faulted 500 scrape responses ("faulted"). Successful calls return "done".
title
string
Machine-readable error code. Branch application error logic on this value.
detail
string
Human-readable error message. Do not parse prose for program branching.
instance
string
Unique trace handle for internal debugging and support escalation.
metadata.request_id
string
19-digit tracking handle for billing and support tickets.
metadata.timestamp
integer
Unix epoch timestamp in seconds.
errors[]
array
Present on request validation errors. Contains field-level failure objects.
errors[].pointer
string
JSON Pointer identifying the invalid request field (e.g., #/storage/type).
errors[].detail
string
Detailed failure reason for the specified field pointer.
Error code reference (title)
Programmatic error routing should evaluate the title attribute:
MALFORMED_JSON
400
Request body is not valid JSON.
INVALID_BODY_PROPERTY
400
A request body property has an invalid value.
NOT_FOUND
404
Invalid route path or unassigned endpoint sub-resource.
METHOD_NOT_ALLOWED
405
Incorrect HTTP method used (Web API endpoints require POST).
REQUEST_FAILED_AFTER_TOO_MANY_RETRIES
500
The scrape failed after the maximum number of retries. Uncharged.
INTERNAL_ERROR
500
Internal processing error.
SERVICE_UNAVAILABLE
503
Temporary backend service disruption.
Media-specific errors
Returned by POST /v1/async/scrape/media and its sub-endpoints when the video can't be downloaded.
11201
VIDEO_DELETED
Video is deleted.
11202
VIDEO_UNAVAILABLE
Video is unavailable.
11203
VIDEO_PRIVATE
Video is set to private by uploader and only they and explicitly invited people can see it.
11204
VIDEO_GEO_RESTRICTED
Video is geo-restricted.
11205
VIDEO_LIVE
Video is live now.
11206
VIDEO_AGE_RESTRICTED
Video is age restricted.
11207
VIDEO_MEMBER_ONLY
Video is for channel members only, and viewers have to pay the monthly subscription fee.
11208
VIDEO_PREMIUM_ONLY
Video requires the YouTube Premium subscription.
11209
VIDEO_LIVE_OR_TOO_LONG
Video is either live or too long to download.
11210
VIDEO_TOO_LONG
Video is too long to download.
11211
VIDEO_SIGN_IN_REQUIRED
Sign in is required.
11301
MEDIA_UNAVAILABLE
Video was deleted or no longer exists
11302
MEDIA_PRIVATE
Video or account is private
11303
MEDIA_GEO_RESTRICTED
Video is not available in the job's region
11304
MEDIA_UNSUPPORTED
Not a downloadable video: a photo, slideshow, livestream, or post with no video formats, or a video too long or too large to download
Last updated
Was this helpful?