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.
| Code | Billed | Status | Action |
|---|---|---|---|
200 | Yes | Successful API Call (sync) | No action required. |
201 | Yes | Async Job Completed | Appears in your request logs when an async job finishes successfully. The job is billed at that point. Not returned as an HTTP response. |
202 | No | Accepted (Async) | The job was accepted and queued. Poll GET /v1/jobs/{job_id} for the result. Polling is free. |
400 | No | Bad Request | Verify your parameters and their types. Check the documentation for more information. |
401 | No | Invalid API Key | Check the key in your x-api-key header. A request without any key gets No X-API-Key header or Authorization token provided. |
401 | No | Inactive API Key | Turn the key back on under API → API keys in the dashboard (edit it and set Active to Yes). |
401 | No | Expired API Key | Update your API key or generate a new one. |
401 | No | Rate limit exceeded | Rate 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. |
402 | No | Payment required | Top up credits, upgrade your plan, enable Auto Top-Up, or settle any open invoices. |
403 | No | Forbidden | Verify your permissions. For API Stats, HTTP 403 means the endpoint is not enabled on your workspace: contact support to activate it. |
404 | Yes, unless the endpoint opts out | Not Found | The request ran but found nothing. Billed unless the endpoint is set not to charge not-found results. |
413 | No | Payload Too Large | The request body is larger than 25 MB. Uploaded files are also limited to 20 MB each. |
500 | No | Internal Error | Retry the action or contact our support team. |
503 | No | Service unavailable | The service behind the endpoint is temporarily unavailable. Retry with exponential backoff. |