BrowserSolver

Status Codes

HTTP status codes returned by the BrowserSolver API and how to handle them.

Synchronous calls are billed on 200. Asynchronous calls (is_async=true) return 202 (not billed) and are billed when the job ends: a successful job is recorded as 201 in your request logs, and a job that ends in 404 is billed like a synchronous 404. Polling GET /v1/jobs/{job_id} is free. Failed jobs (400, 500) are never billed. A 404 is billed unless the endpoint is set not to charge not-found results. All other 4xx/5xx responses are free. If the client closes the socket before a synchronous response is sent, the call is still billed when the result is a billable status. A rate-limit 401 is a normal JSON response: the server does not close the socket.

CodeBilledStatusAction
200YesSuccessful API Call (sync)No action required.
201YesAsync Job CompletedAppears in your request logs when an async job finishes successfully. The job is billed at that point. Not returned as an HTTP response.
202NoAccepted (Async)The job was accepted and queued. Poll GET /v1/jobs/{job_id} for the result. Polling is free.
400NoBad RequestVerify your parameters and their types. Check the documentation for more information.
401NoInvalid API KeyCheck the key in your x-api-key header. A request without any key gets No X-API-Key header or Authorization token provided.
401NoInactive API KeyTurn the key back on under API → API keys in the dashboard (edit it and set Active to Yes).
401NoExpired API KeyUpdate your API key or generate a new one.
401NoRate limit exceededRate limit exceeded: … is your plan's per-second or per-minute limit: back off a few seconds and retry. Rate limit exceeded for the API key: quota … is a per-key quota: do not retry, raise the quota or use another key. The server returns this 401 with a JSON body and does not close the socket.
402NoPayment requiredTop up credits, upgrade your plan, enable Auto Top-Up, or settle any open invoices.
403NoForbiddenVerify your permissions. For API Stats, HTTP 403 means the endpoint is not enabled on your workspace: contact support to activate it.
404Yes, unless the endpoint opts outNot FoundThe request ran but found nothing. Billed unless the endpoint is set not to charge not-found results.
413NoPayload Too LargeThe request body is larger than 25 MB. Uploaded files are also limited to 20 MB each.
500NoInternal ErrorRetry the action or contact our support team.
503NoService unavailableThe service behind the endpoint is temporarily unavailable. Retry with exponential backoff.