Glossary
HTTP status code: reading the server reply
An HTTP status code is the three digit number at the start of every response that tells the client whether the request worked, moved, was refused or failed.
The five classes
The first digit gives the class. 1xx is informational, 2xx is success, 3xx is redirection, 4xx is a client side problem and 5xx is a server side problem. Code that branches on the class first and the exact code second stays readable and handles codes you did not plan for.
The codes a scraper meets most
| Code | Official meaning | What it often means in practice |
|---|---|---|
| 200 OK | Success | Usually content, but sometimes a challenge page served with 200; check the body |
| 301 / 302 | Moved permanently / found | Canonical URL, login redirect, or a hop to a challenge (see HTTP redirect) |
| 304 | Not modified | Your cached copy is still valid |
| 403 Forbidden | Refused | Bot protection or WAF rule; often a challenge page in the body |
| 404 Not Found | No such resource | Dead link; do not retry |
| 429 Too Many Requests | Rate limited | Slow down; honor Retry-After |
| 503 Service Unavailable | Temporarily unavailable | Overload, maintenance, or a JavaScript challenge served with 503 |
Status alone is not enough
Bot protection does not follow one convention. Cloudflare often serves its challenge page with 403 or 503; some sites return 200 with a CAPTCHA in the HTML; others answer 200 with an empty product list. So a robust scraper checks both: the status, then a quick look at the body for challenge markers (a widget with data-sitekey, a "Just a moment..." title, a vendor script) or for a field every real page has.
A small decision helper
def next_move(status: int, body: str) -> str:
challenged = "data-sitekey" in body or "challenge-platform" in body
if challenged:
return "solve" # create a task, then retry with the answer
if status == 429 or status == 503:
return "wait" # honor Retry-After, then retry
if status in (403, 401):
return "inspect" # blocked without a visible challenge
if 200 <= status < 300:
return "parse"
return "skip" if status == 404 else "retry"
When the answer is "solve", the challenge type picks the task: a Turnstile widget needs a Cloudflare Turnstile task, a full Cloudflare check needs a Cloudflare Challenge task with your proxy. A Turnstile token typically takes under 3 seconds.
Logging statuses usefully
Record the status, the final URL after redirects and the response size for every request, grouped by host. Over a day of crawling, this simple log shows patterns that single errors hide: a host that turns from 200 to 403 after a few hundred pages, a rise in 429s at a certain hour, or 200 responses that suddenly shrink to a few kilobytes because they now carry a challenge instead of content. Those patterns tell you whether to slow down, change how you connect, or add a solving step for that host.
Status codes from the GateSolver API
The solving API reports problems in the JSON body through errorId and errorCode, such as ERROR_ZERO_BALANCE or ERROR_RATE_LIMIT, so read the body even on success statuses. Error responses are not billed, and neither are failed tasks. The API docs list every error code, and the FAQ pages on 429 and 403 go deeper on those two.
Common questions
Can a challenge page come back with status 200?
Yes. Some sites serve CAPTCHA pages with 200, so always check the body for challenge markers.
What should a scraper do on a 429?
Pause, honor any Retry-After header, then retry with a lower request rate.
Is a 503 always a server outage?
No. Cloudflare and other services also use 503 for challenge pages, so inspect the body before assuming an outage.
Should I retry a 404?
Usually not. The resource is missing, and retrying wastes requests. Log it and move on.
How does the GateSolver API report errors?
Through errorId and errorCode fields in the JSON body. Error responses and failed tasks cost nothing.
Keep reading
- How do I avoid HTTP 429 Too Many Requests?A 429 means you crossed a rate limit; slow down, honor Retry-After, back off with jitter and spread load across sessions.
- What does HTTP 403 mean when scraping?A 403 means the server understood the request and refused it, usually because of IP, headers, missing cookies or a challenge.
- HTTP redirectResponses that send the client to another URL, the codes that do it, and the redirects that lead to challenges.
- What causes 503 Service Unavailable while scraping?A 503 means the server cannot handle the request now: overload, maintenance, or a bot check served with that status.