Web Unlocker Failed. Now What? A Retry-or-Stop Table for Bright Data Error Codes
Originally published at AgentStack Notes. Last fact-checked: November 18, 2026.
Disclosure: This article was drafted with AI assistance and checked against Bright Data's official documentation. We may receive a commission if you sign up through the links marked † in this article (Bright Data †), at no extra cost to you. We have not run production workloads on Bright Data; everything below comes from its official documentation.
Note on experience: we have not called the Web Unlocker API, triggered these errors or measured any bill. Pages were read on November 17-18, 2026 (the error-code page as raw page text, the other pages through a web-fetch tool that summarises them). Check the live docs before relying on any statement. "Not stated" means the page we read did not say.
A failed Bright Data † Web Unlocker call leaves an agent with three moves: retry, change the request, or stop and ask a person. The table below maps the codes on Bright Data's error-code page to those moves. Afterwards come the timeout trap and the billing questions the docs do not answer.
Retry-or-stop table
The grouping follows the docs; the actions are our reading, not vendor guidance.
| Code or family | Docs meaning | Agent move |
|---|---|---|
reject_block, resolve_failed_* |
CAPTCHA or protection page detected; the page says the same request has been seen to succeed later | Retry within a small fixed budget |
http_status |
Target returned a blocking status, including a 429 from the target | One attempt is worth it; if it persists, contact support with the req_id |
net_err_cert_*, document_load_failed (TLS or cipher mismatch), proxy_error (host does not resolve) |
Same error every time | Stop |
no_peers |
No available peers for the requested country | Change or drop the country |
premium, feature_not_active, ub_bad_endpoint_robots |
HTTP 400, no unlock attempted (ub_bad_endpoint_robots: path disallowed by robots.txt in immediate access mode) |
Surface to a human |
403 with policy_20051 or policy_20000 |
Compliance policy: government sites and a blocked domain classification, per the KYC page | Stop and surface to a human; no retry or workaround suggested |
401; 403 with policy_20020 or client_10090; 407 with client_10000, client_10002, client_10010 or client_10001 |
API key and zone/auth errors | Setup bugs, not transient faults; fix them |
sr_rate_limit (429) |
The health monitor throttled requests to this target; the docs say to contact support and give no back-off interval | Slow down; no documented interval |
The 502 rate_limit code is a different, Bright Data-side limit.
On robots.txt: the Web Unlocker KYC page (read November 18) says new accounts start in "immediate access mode", which honours the target's robots.txt, and that disallowed endpoints open only after KYC approval. After KYC, requests outside the approved use case return "Access denied" naming the category. Treat all of this as non-retryable; the 403 reading is ours, not vendor guidance.
Branch on the code, not the HTTP status
Every error carries an x-brd-error header (message) and an x-brd-error-code header (machine-readable code). In the Direct API the outer response is 200 OK once the request reaches the unlocker, and the result is in x-brd-status-code. Proxy-level failures use x-brd-err-code and x-brd-err-msg. A 502 can be a CAPTCHA that may clear on retry or a certificate problem that never will.
The timeout trap
For expect_element, the page says observed waits run from 30 to 150 seconds and advises allowing at least 180 seconds. A shorter client or tool timeout can abort the call before the error returns, so check the timeout your agent framework applies.
What the docs promise about billing
The Web Unlocker overview says "You pay only for successful requests", and its FAQ answers "Do you pay for failed requests?" with no. It does not state a price, a pricing unit, a rate limit, or what counts as "successful". The error-code page mentions billing once, in another context: feature_not_active notes that custom features switch the zone to 100% billing. It does not say whether any individual error response is billed.
The SERP API introduction says "Pay only for successful delivery" and lists 401/403 and 429 only, with no price, no definition of successful delivery and no numeric limits. Do not assume the Web Unlocker table applies to SERP requests.
Logging checklist (our reading)
- Record
x-brd-error-code,x-brd-errorand thereq_idfor every failed call. - Do not retry certificate,
no_peers, 400 or auth errors. - Use client timeouts of at least 180 seconds for calls that may hit
expect_element. - Compare your first invoice with the number of successes you recorded.
What we could not confirm
- Whether any error response (400, 401, 403, 407, 429, 502 or 503) is billed.
- Whether retries after errors are billed.
- What "successful" means for billing, for example whether a 200 with a block page counts.
- Prices, pricing units, free tiers and refunds on the pages we read.
- A back-off interval for
sr_rate_limit, and numeric rate or concurrency limits. - Whether the error table is complete for SERP API zones.
- How KYC approval is decided, and which categories count as in or out of an approved use case.
Sources: docs.brightdata.com (Web Unlocker API introduction; Web Unlocker API error codes; SERP API introduction; Web Unlocker API and KYC). Checked November 17-18, 2026.
More: the original article, and our earlier pieces on failed-scrape billing and retry budgets.
About the author
- Source-checked comparisons of automation and web-data tools for indie builders. Every number cites an official page; AI-assisted drafts, human-reviewed. Site: https://dapper-shortbread-aad01d.netlify.app
Comments
Join the discussionNo comments yet. Be the first to comment.