---
title: "503 Service Unavailable: site down, or a bot wall?"
description: "503 Service Unavailable means the server can't answer right now, or an anti-bot wall is posing as one. How to tell which, and how to fix it."
url: "https://scrapenews.com/errors/503-service-unavailable"
updated: "2026-11-26T00:00:00Z"
---

# 503 Service Unavailable: site down, or a bot wall?

HTTP status codes · 503

Published 25 Nov 2026 · Updated 26 Nov 2026

What you see

- `503 Service Unavailable`
- `HTTP/1.1 503 Service Unavailable`
- `HTTP Error 503: Service Unavailable`
- `503 Server Error: Service Unavailable for url`

**More error strings (4)**

- `Request failed with status code 503`
- `503 Slow Down`
- `Sorry, we just need to make sure you're not a robot. For best results, please make sure your browser is accepting cookies.`
- `To discuss automated access to Amazon data please contact api-services-support@amazon.com.`

## What it means

The server says it can’t handle your request right now. Often that’s true: the site is overloaded or down for maintenance, and waiting fixes it. But some sites send 503 to bots on purpose. Then waiting changes nothing, and you need a different fix.

## Why it happens

The spec (RFC 9110) defines 503 as a temporary problem: overload or planned maintenance. In practice, scrapers hit it for these reasons, most common first:

1. **The site is overloaded.** Servers turn requests away when memory, CPU or connections run out. That stops a small problem from becoming a crash.
2. **You are the overload.** Too many requests, too fast. nginx, a common web server, answers its own rate limit with 503 by default, not 429.
3. **Maintenance.** Admins can point all traffic to a 503 page while they work, or a software update does it for them.
4. **An anti-bot wall.** The site is fine, but it doesn’t trust your client. Amazon’s robot check is the famous one: a CAPTCHA page sent with a 503 status.
5. **A CDN in the middle failed.** A CDN (a network of servers that sits in front of the site) can send its own 503. Cloudflare and Amazon CloudFront both document cases.

**The trap: your retry code thinks every 503 is a short outage.** On a bot wall, it keeps retrying and keeps failing, and your logs say the site is down.

How walls end up on 503:

- **Amazon.** Scrapers on Stack Overflow report 503s with a page that says “Sorry, we just need to make sure you’re not a robot.” Stat Proxies, a proxy seller, says a default or missing User-Agent alone can trigger it, as can data centre IPs.
- **Akamai.** Its standard deny sends 403. But site owners can build a custom deny with any status from 100 to 999, so 503 is possible.
- **Akamai, in a real case.** On eBay’s developer forum, a user reported that from 28 Jul 2026 every Trading API call got HTTP 503 from `AkamaiGHost` with “Service Unavailable - Zero size object”. eBay’s other APIs answered 200 from the same machine. A reply blamed Akamai’s edge for blocking requests that carry one header.
- **Cloudflare, before March 2023.** Its JavaScript challenge and “I’m Under Attack Mode” used 503. Cloudflare said the code made it hard for attackers to know if a site was really down. On 1 March 2023 it switched them to 403. Still, a May 2026 bug report on GitHub describes a Cloudflare challenge page served with 503.

Why would a healthy site say it is down? There are two reasons, both on record.

Overload first. MDN explains the logic: turning some requests away with 503 creates backpressure. The refused traffic can’t eat the memory and CPU the server needs for everyone else, so a slowdown doesn’t become a crash.

Rate limits are messier. MDN says a server that limits one client should answer 429. nginx still defaults to 503, so plenty of sites send that instead.

Walls hide on purpose. Cloudflare picked 503 for its first challenge in 2012, so attackers couldn’t tell if they had knocked a site offline. It dropped the code because 503 confused real visitors: some browsers, such as Brave, show other content on a 5xx error.

Amazon’s case shows the tell. Stat Proxies says one plain request with a default client gets the robot check at once, with no volume needed. So it judges your client, not your speed.

## Fix it

1. **Read the body and headers before you retry.** Look for words like “robot”, “automated access” or a CAPTCHA, and a `cf-mitigated: challenge` header. Any of those means a wall, not an outage.
2. **Open the same URL in a normal browser.** If it loads there but not in your scraper, you are being blocked. Go to step 5.
3. **Real outage? Wait for `Retry-After`.** The server may send it to say how long the outage will last, in seconds or as a date. Wait that long, then try once.
4. **No header? Back off and cap it.** Wait 1 second, then 2, then 4. Stop after a few tries. If your own speed is the cause, send fewer requests in parallel. See [429 Too Many Requests](https://scrapenews.com/errors/429-too-many-requests.md) for pacing.
5. **Blocked? Look like a browser.** Send a real browser’s User-Agent and its other headers. Keep cookies between requests: Amazon’s own robot page asks for them. If that fails, try a different kind of IP, since data centre ranges get flagged.
6. **Use the official API when there is one.** Amazon’s robot page points to its Marketplace APIs and its Product Advertising API.
7. **Own the site?** Cloudflare says: if the 503 page has “cloudflare” in its HTML, the problem is in a Cloudflare data center. If not, your origin sent it. Check its logs for CPU, memory or connection limits, or a maintenance mode left on.

The wall answers 403 instead? See [403 Forbidden](https://scrapenews.com/errors/403-forbidden.md), [Cloudflare “Just a moment…”](https://scrapenews.com/errors/cloudflare-just-a-moment.md) and [Akamai Access Denied](https://scrapenews.com/errors/akamai-access-denied.md).

Getting 502 or 504 from your proxy or scraper API? See [502 Bad Gateway and 504 Gateway Timeout](https://scrapenews.com/errors/502-504-bad-gateway-timeout.md).

Why the body comes first: a retry loop against a wall just piles up 503s. Stat Proxies warns that this is how people end up deciding Amazon is down.

The browser test splits the two cases. One Stack Overflow user could still open the site by hand, so his IP was not banned. His script still got 503, even after he switched User-Agents. The answer he got: turn on cookies and copy every header the browser sends, not just the User-Agent. Random User-Agents from the same IP, it added, change little unless the IP changes too.

Our advice: change one thing at a time, then test. The change that clears the 503 tells you what the wall checks.

Owners asking Cloudflare support for help need three things: the domain, the time and time zone of the 503, and the output of `/cdn-cgi/trace` from the browser that saw it.

Paste this into your AI

```
My scraper gets "503 Service Unavailable" from a website.
Response headers: <paste them, e.g. Server, Retry-After, cf-mitigated, x-cache>.
First lines of the body: <paste them>.
Tell me in plain words if this looks like a real outage or overload, or an anti-bot wall that answers 503.
Then list the likely causes in order, most likely first. For each cause, give one way to test it and one fix.
My setup: <language + library>, <the URL pattern>, <the request headers I send, incl. User-Agent>,
<requests per minute and how many in parallel>, <home IP, cloud server or proxy type>.
Does the page load in a normal browser on the same network? <yes/no>
```

## Dev details

The status line and the optional header, from RFC 9110:

```http
HTTP/1.1 503 Service Unavailable
Content-Type: text/html
Retry-After: 120
```

`Retry-After` comes in two forms. Your code must handle both:

```http
Retry-After: 120
Retry-After: Fri, 31 Dec 1999 23:59:59 GMT
```

How the error looks in common libraries:

```text
requests (raise_for_status):  503 Server Error: Service Unavailable for url: https://…
Python urllib:                HTTP Error 503: Service Unavailable
axios:                        Request failed with status code 503
```

Amazon’s robot check body, as a Stack Overflow user pasted it:

```text
To discuss automated access to Amazon data please contact api-services-support@amazon.com.
…
Sorry, we just need to make sure you're not a robot. For best results, please make sure your browser is accepting cookies.
```

An Akamai edge 503, as the eBay forum user pasted it:

```text
Service Unavailable - Zero size object
Akamai reference: 15.891c1602.1785420933.3fb709dc
```

The reply’s test: send the same request twice, once with the suspect header and once without. If only the one with the header gets 503, the edge is rejecting that request before it reaches the site.

### Tell an outage from a wall (JavaScript)

```js
const res = await fetch(url, { headers });
if (res.status === 503) {
  const body = await res.text();
  const challenged = res.headers.get("cf-mitigated") === "challenge";
  const robotCheck = /not a robot|automated access|captcha/i.test(body);
  if (challenged || robotCheck) {
    // A wall: the same request will fail again. Change the client, don't retry.
  } else {
    // Outage or overload: wait for Retry-After, then retry a few times.
    console.log("retry-after:", res.headers.get("retry-after"));
  }
}
```

### Python (requests + urllib3 Retry)

urllib3’s `Retry` honors `Retry-After` on 413, 429 and 503 by default. Its backoff is capped at 120 seconds.

```python
import requests
from requests.adapters import HTTPAdapter
from urllib3.util import Retry

retry = Retry(
    total=4,
    status_forcelist=[503],
    backoff_factor=1,
    respect_retry_after_header=True,
)
session = requests.Session()
session.mount("https://", HTTPAdapter(max_retries=retry))
resp = session.get("https://example.com/page")
```

Only retry what the body says is an outage. A retry policy alone can’t tell a wall from a real 503.

### Scrapy

`RETRY_HTTP_CODES` includes 503 by default (`[408, 429, 500, 502, 503, 504, 522, 524]`). `RETRY_TIMES` defaults to 2, on top of the first try. So a wall costs you three requests per URL before Scrapy gives up.

### nginx rate limits answer 503

```nginx
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;

server {
    location /search/ {
        limit_req zone=one burst=5;
    }
}
```

Requests past the burst get an error. The status comes from `limit_req_status`, which defaults to `503`. So a 503 that shows up only when you go fast, and stops when you slow down, is likely a rate limit.

### Edge cases

- **Cloudflare challenges.** Cloudflare sets `cf-mitigated: challenge` on every challenge page, and `challenge` is its only value. Match on the header, not the status code.
- **Cloudflare’s own 503.** “cloudflare” or “cloudflare-nginx” in the HTML means a Cloudflare data center problem. A 503 that shows up only in the owner’s logs, never to visitors, comes from failed Speed Brain prefetches, a Cloudflare feature.
- **Amazon S3 `503 Slow Down`.** S3 handles 5,500 GET/HEAD requests per second per prefix (a folder-like part of the path). AWS says a 503 Slow Down usually means too many requests on one prefix.
- **CloudFront.** A 503 usually means the origin behind it is struggling. Rarely, CloudFront itself is short on capacity at an edge location; AWS says that is common during load tests.
- **Stat Proxies’ tell for Amazon’s wall:** an `x-cache: Error from cloudfront` header on the robot check response.
- **Caching.** MDN warns that 503 responses usually shouldn’t be cached, or users keep seeing the error page after the fix.
- **Akamai custom deny.** The status lives in `response_status_code`. Default `403`, any value from 100 to 999 allowed.

Parsing `Retry-After` yourself? RFC 9110 says the number form is a whole number of seconds, zero or more. Anything else should be a date. urllib3 handles it like this:

- Digits become seconds.
- A date becomes “that time minus now”. A date in the past becomes 0.
- Anything over 21,600 seconds (6 hours) is cut to 21,600.
- A header that is neither raises `InvalidHeader`.

nginx’s limit is stricter than it looks. `burst` defaults to zero, so without it every request over the rate is refused. The docs’ example allows 1 request per second on average, with bursts up to 5.

Using Scrapy’s HTTP cache? Add your retry codes to `HTTPCACHE_IGNORE_HTTP_CODES`. Otherwise a retried 503 can get cached and served back on the next try.

Old Cloudflare challenges answered the first GET with 503 and a form that posted back, per a Cloudflare Community thread. A scraper that checks only the status counts that page as a failed request.

## Open questions

Amazon hasn’t said which status code its robot check sends. What we know comes from scrapers’ reports, not from Amazon.

Why it matters: if your code spots Amazon’s wall by its 503, a quiet change breaks it. Cloudflare showed that codes do change: it moved its challenges from 503 to 403 in 2023.

The reports don’t fully agree either. In a 2021 GitHub issue, one developer saw Amazon return 503 with a “Sorry! Something went wrong!” page one time. Another time, it returned 200 with only the title “Amazon.com”, which the developer did not count as real page data.

Our advice: spot the wall by the words on the page (“not a robot”, “automated access”) and treat the status code as a hint.

## Questions

### Why does Amazon return 503 to my scraper?

Scrapers on Stack Overflow report a 503 from Amazon with a page that says "Sorry, we just need to make sure you're not a robot". That is a robot check, not an outage. The page itself asks you to accept cookies and points to Amazon's official APIs. Retrying the same request on a timer just gets you more 503s.

### Is a Cloudflare 503 a bot challenge?

Usually not anymore. Since 1 March 2023, Cloudflare's JavaScript challenge and I'm Under Attack Mode answer with 403, not 503. Check the cf-mitigated header: if it says challenge, it is a challenge, whatever the status. A 503 page with "cloudflare" in its HTML points to a connection problem in a Cloudflare data center, per Cloudflare's docs.

## scrapenews difficulty

Not scored. We have 1 of 8 factors; a score needs 3.

| Factor | What we found | Source |
| --- | --- | --- |
| Checks stacked | header and HTTP/2 fingerprint, IP reputation, mouse and behaviour | [statproxies.com](https://www.statproxies.com/glossary/anti-bot-status-codes/site/amazon) |

Our analysis of 1 sourced facts; measured runs replace them as they come. [How we rate difficulty](https://scrapenews.com/rating.md)

## Related

- [Why am I blocked? How to avoid getting blocked while scraping](https://scrapenews.com/guides/how-to-avoid-getting-blocked-scraping.md)  (Guide)
- [Scraper and unblocker APIs](https://scrapenews.com/compare/scraper-apis.md)  (Compare)
- [ECONNRESET and ERR_CONNECTION_RESET](https://scrapenews.com/errors/econnreset-connection-reset.md)  (Error)
- [ERR_HTTP2_PROTOCOL_ERROR when scraping](https://scrapenews.com/errors/err-http2-protocol-error.md)  (Error)
- [Kasada 429 with x-kpsdk headers](https://scrapenews.com/errors/kasada.md)  (Error)
- [LinkedIn 999 Request Denied when scraping](https://scrapenews.com/errors/linkedin-999.md)  (Error)

## Tools that get past it

| Tool | Price |
| --- | --- |
| [Scrapy](https://scrapenews.com/compare/scrapy.md): Python framework for crawling sites and extracting data: request queue, retries, pipelines, exports. Large plugin ecosystem. | Free |

## Sources

1. [RFC 9110 §15.6.4: 503 Service Unavailable](https://www.rfc-editor.org/rfc/rfc9110#name-503-service-unavailable) rfc-editor.org
2. [RFC 9110 §10.2.3: Retry-After](https://www.rfc-editor.org/rfc/rfc9110#name-retry-after) rfc-editor.org
3. [MDN: 503 Service Unavailable](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/503) developer.mozilla.org
4. [Cloudflare docs: Error 503](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-503/) developers.cloudflare.com
5. [Cloudflare Community: Status code for JavaScript Challenge changing from 503 to 403](https://community.cloudflare.com/t/community-update-status-code-for-javascript-challenge-changing-from-503-to-403/445724) community.cloudflare.com
6. [Cloudflare docs: Detect a Challenge Page response (cf-mitigated)](https://developers.cloudflare.com/cloudflare-challenges/challenge-types/challenge-pages/detect-response/) developers.cloudflare.com
7. [Cloudflare Community: JS challenge answers the first GET with 503](https://community.cloudflare.com/t/js-challenge-changes-get-request-to-post/300387) community.cloudflare.com
8. [Claude Code issue #55346: "Just a moment..." challenge with HTTP 503](https://github.com/anthropics/claude-code/issues/55346) github.com
9. [AWS docs: CloudFront HTTP 503 (Service Unavailable)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-503-service-unavailable.html) docs.aws.amazon.com
10. [Akamai docs: Application Security API concepts (custom deny)](https://techdocs.akamai.com/application-security/reference/api-concepts) techdocs.akamai.com
11. [Akamai docs: Deny name values (response_status_code)](https://techdocs.akamai.com/application-security/reference/deny-name-values) techdocs.akamai.com
12. [Stat Proxies: Anti-bot status codes](https://www.statproxies.com/glossary/anti-bot-status-codes) statproxies.com
13. [Stat Proxies: Amazon bot detection status codes](https://www.statproxies.com/glossary/anti-bot-status-codes/site/amazon) statproxies.com
14. [Stack Overflow: Web scraping from Amazon is generating an error](https://stackoverflow.com/questions/76817152/web-scraping-from-amazon-is-generating-an-error) stackoverflow.com
15. [Stack Overflow: Amazon Scraping returns 503](https://stackoverflow.com/questions/21449431/amazon-scraping-returns-503) stackoverflow.com
16. [Stack Overflow: web scraper with HTTP Error 503: Service Unavailable](https://stackoverflow.com/questions/38600066/web-scraper-with-http-error-503-service-unavailable) stackoverflow.com
17. [eBay Developers Program community: Trading API returning 503 from Akamai](https://community.ebay.com/forum/ebay-developers-program-57950/topic/trading-api-returning-503-from-akamai-for-5-days-need-help-472474/) community.ebay.com
18. [unfurl issue #77: Amazon returns 503 or 200](https://github.com/jacktuck/unfurl/issues/77) github.com
19. [nginx docs: ngx_http_limit_req_module (limit_req_status)](https://nginx.org/en/docs/http/ngx_http_limit_req_module.html) nginx.org
20. [urllib3 source: Retry (RETRY_AFTER_STATUS_CODES)](https://github.com/urllib3/urllib3/blob/main/src/urllib3/util/retry.py) github.com
21. [Scrapy docs: RETRY_HTTP_CODES, RETRY_TIMES, HTTPCACHE_IGNORE_HTTP_CODES](https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#retry-http-codes) docs.scrapy.org
22. [requests source: raise_for_status message](https://github.com/psf/requests/blob/main/src/requests/models.py) github.com
23. [CPython source: urllib HTTPError message](https://github.com/python/cpython/blob/main/Lib/urllib/error.py) github.com
24. [axios source: status error message](https://github.com/axios/axios/blob/v1.x/lib/core/settle.js) github.com

## Up

- [Home](https://scrapenews.com/index.md)
- [Errors & CAPTCHAs](https://scrapenews.com/errors.md)
