HTTP status codes
A searchable reference of HTTP status codes: what the specification says, and what each one tends to mean when it comes back to an automated client.
| Code | Name | What it means | When you are scraping |
|---|---|---|---|
| 100 | Continue | The server has the request headers and the client may send the body. | Rarely seen directly; your HTTP client handles it. |
| 101 | Switching Protocols | The server is changing protocol as the client asked. | The normal answer to a WebSocket upgrade. |
| 103 | Early Hints | Headers sent ahead of the final response so the client can preload. | Safe to ignore. Some older clients mishandle it. |
| 200 | OK | The request succeeded. | Not proof you got the page: challenge pages and soft blocks often come back 200. Check the body. |
| 201 | Created | The request succeeded and created a resource. | The expected answer to many POST calls. |
| 202 | Accepted | The request was accepted but is not finished. | Poll the status endpoint the response points to. Some bot checks also answer 202 while they decide. |
| 204 | No Content | Success, with no body. | Common for beacons and telemetry endpoints, including anti-bot sensors. |
| 206 | Partial Content | The server sent the range that was asked for. | What a ranged download gets. Check Content-Range before joining parts. |
| 301 | Moved Permanently | The resource has a new permanent address. | Follow it and store the new URL. |
| 302 | Found | The resource is temporarily at another address. | A redirect to a login, consent or challenge URL usually means the session was not accepted. |
| 303 | See Other | Fetch the result with a GET at another address. | The usual answer after a form POST. |
| 304 | Not Modified | The cached copy is still good. | You sent a conditional request. Use your cached body. |
| 307 | Temporary Redirect | Repeat the same request at another address. | Keep the method and body when following it. |
| 308 | Permanent Redirect | Repeat the same request at a new permanent address. | Like 301, but the method must not change. |
| 400 | Bad Request | The server could not understand the request. | Check the body encoding and header order. Some bot protection answers 400 to a request no browser would send. |
| 401 | Unauthorized | Authentication is missing or wrong. | The token or cookie is absent or expired. Sign in again. |
| 402 | Payment Required | Reserved; used by some APIs for exhausted credit. | Your balance or quota with that API has run out. |
| 403 | Forbidden | The server understood the request and refuses it. | The most common block. Look at the headers and body for the vendor: Kasada, DataDome, Akamai and Cloudflare all use it. |
| 404 | Not Found | Nothing is at that address. | Usually real, but some sites send 404 to suspected bots so the block looks like a dead link. |
| 405 | Method Not Allowed | The address exists but not for that method. | Read the Allow header for the methods it accepts. |
| 406 | Not Acceptable | Nothing matches the Accept headers. | Send the Accept and Accept-Language headers a browser would. |
| 407 | Proxy Authentication Required | The proxy wants credentials. | This came from your proxy, not the site. Check the proxy username and password. |
| 408 | Request Timeout | The server gave up waiting for the request. | A slow proxy or a stalled upload. Retry on a new connection. |
| 409 | Conflict | The request conflicts with the resource's state. | Common on concurrent writes. Refetch, then retry. |
| 410 | Gone | The resource was removed on purpose. | Stop requesting that URL. |
| 412 | Precondition Failed | A condition in the request headers was false. | Some bot checks use it when a required cookie or pass is missing. |
| 413 | Content Too Large | The request body is larger than the server accepts. | Split the upload or compress it. |
| 415 | Unsupported Media Type | The server will not accept that Content-Type. | Send the Content-Type the endpoint expects, usually application/json. |
| 418 | I'm a teapot | A joke code from an April Fools' RFC. | A few sites use it as a deliberate answer to bots. |
| 421 | Misdirected Request | The request reached a server that cannot answer for that host. | Connection reuse across hosts on HTTP/2. Open a new connection. |
| 422 | Unprocessable Content | The body is well formed but its values are invalid. | Read the error body: a field failed validation. |
| 425 | Too Early | The server will not risk replaying early data. | Retry without TLS early data. |
| 426 | Upgrade Required | The server wants a different protocol. | Usually asks for HTTP/2 or TLS. Use a client that speaks it. |
| 428 | Precondition Required | The server requires a conditional request. | Send If-Match with the resource's current ETag. |
| 429 | Too Many Requests | The client has sent too many requests. | Honour Retry-After and slow down. Kasada also answers 429 to a request with no valid pass, however slow you go. |
| 431 | Request Header Fields Too Large | The headers are too large. | Usually an oversized cookie jar. Drop cookies you do not need. |
| 444 | No Response | nginx closed the connection without answering (not in the specification). | A silent drop, often a firewall rule on your address or TLS fingerprint. |
| 451 | Unavailable For Legal Reasons | Access is blocked for legal reasons. | Usually a geographic restriction. The exit country matters. |
| 499 | Client Closed Request | nginx logged that the client hung up first (not in the specification). | Your timeout is shorter than the server's response time. |
| 500 | Internal Server Error | The server failed. | Retry with backoff. If only your requests fail, the request shape is tripping something. |
| 501 | Not Implemented | The server does not support the method. | Check the method and the endpoint. |
| 502 | Bad Gateway | A gateway got a bad answer from upstream. | Often your proxy failing to reach the site. Try another exit. |
| 503 | Service Unavailable | The server cannot answer right now. | Real overload, or a challenge page: Cloudflare's classic interstitial is a 503. |
| 504 | Gateway Timeout | A gateway timed out waiting for upstream. | A slow origin or a slow proxy. Retry, and raise your own timeout. |
| 520 | Web Server Returned an Unknown Error | Cloudflare got an empty or unexpected answer from the origin. | The origin is failing behind Cloudflare. Not a block. |
| 521 | Web Server Is Down | Cloudflare could not connect to the origin. | The origin refused the connection. Wait and retry. |
| 522 | Connection Timed Out | Cloudflare timed out connecting to the origin. | Origin trouble, not you. |
| 525 | SSL Handshake Failed | Cloudflare could not complete TLS with the origin. | Origin misconfiguration. Nothing a client can fix. |
When to use it
A request came back with a status code you don't recognise, or with a 200 that isn't the page you wanted. Look the code up in the table. You'll see what it means, and what it usually means when a scraper gets it.
The status code is the first clue, not the answer
The first digit gives the class. 2xx means it worked. 3xx points somewhere else. 4xx says the request was at fault, and 5xx says the server was. For a scraper the class is less reliable than it looks, because anti-bot systems choose their own codes.
- A
403or429with almost no body is the usual shape of a Kasada or Akamai block. - A
403whose body loads a script fromcaptcha-delivery.comis DataDome. - A
200can still be a challenge page. Check that the body holds the content you asked for.
To find out which bot protection answered, paste the response into the anti-bot detector.
Questions people ask
What does a 403 mean when scraping?
The server understood you and refused. On a protected site it nearly always means the anti-bot system decided you were not a browser. Look at the response headers and body to see which vendor sent it.
What is the difference between 403 and 429?
A 403 is a refusal, and a 429 says you sent too many requests. In practice the line blurs: Kasada answers 429 to any request without a valid pass, however slowly you send them.
Why do I get a 200 but not the page I wanted?
Because the status code only describes the HTTP exchange. Challenge pages, consent walls and soft blocks are often served with a 200. Check the body for the content you expected before treating it as a success.
Which status codes are worth retrying?
429, 502, 503 and 504, with a pause that grows each time and respects Retry-After. Retrying a 403 or 401 unchanged just repeats the block.
Related tools
All tools →Get started
Blocked by bot protection? $5 is 5,000 solves.
No subscriptionCredit never expiresFailed solves are free