503 Service Unavailable: causes and fixes for visitors, site owners and scrapers
By the ProxyOnly team · 16 Nov 2026 · 5 min read
A 503 means a server is overloaded or down for maintenance. What to do as a visitor, a site owner or a scraper, and how to honor Retry-After.
A 503 Service Unavailable means that the server cannot handle your request right now because it is overloaded or down for maintenance. The server expects the condition to pass after some time. RFC 9110 says the server may send a Retry-After header to suggest how long to wait.
The 503 is the one 5xx error with a standard way of saying how long to wait. That separates it from a 502 or 504, which only say that something behind the server failed. The same standard also notes that a server is not required to send a 503 when it is overloaded, and that some servers simply refuse the connection instead. A 503 therefore often means the server is still in control and is declining on purpose.
How a 503 differs from nearby errors
500 Internal Server Error: the application ran and failed.502 Bad Gatewayand504 Gateway Timeout: a server in the middle could not get a usable or timely answer from the one behind it.429 Too Many Requests: you in particular are sending too many requests. See 429 Too Many Requests.503 Service Unavailable: the service as a whole cannot take requests for the moment.
In practice the lines blur. Some sites send a 503 to rate-limit a client or to show a challenge page, so read the response body as well as the status.
What causes a 503
- Too much traffic at once: a popular post, a sale, an attack, or a flood of automated requests.
- A resource limit has been hit, such as the number of application workers, database connections, or the processes a shared hosting plan allows.
- Planned maintenance, where the site returns a 503 on purpose.
- Maintenance mode that never ended. When WordPress updates, it creates a
.maintenancefile in the site's root folder. If the update is interrupted, the file can stay behind and visitors keep seeing "Briefly unavailable for scheduled maintenance". WordPress's own documentation on common errors says to delete that file. - A dependency is down, such as the database, and the application refuses requests until it returns.
- Some load balancers and firewalls answer 503 when they have no healthy server to send traffic to, or when they limit a client.
Cloudflare's documentation on 503 draws a line you can use: if the error page contains "cloudflare" or "cloudflare-nginx", the problem may come from Cloudflare. If it does not, the origin server is the likely source.
If you are a visitor
- Wait a few minutes and try again. Hitting reload repeatedly adds load to a server that is already overloaded.
- Check another page of the site and the site's status page or social media account. A big service usually announces an outage.
- Test from another device and network to rule out your own connection. How to check if a website is down shows how.
- If it lasts for hours, tell the site's owner.
If you run the site
- Find the bottleneck first. Check the application's worker limits, the database's connection count, CPU and memory, and the logs from the time the errors started.
- Reduce the load. Cache pages that do not change, serve static files from a CDN, and block or slow down abusive traffic.
- Use a 503 on purpose for planned maintenance, and send
Retry-After. Crawlers then understand that the outage is temporary. Google's documentation on HTTP status codes says that 5xx and 429 responses make its crawlers slow down, and that URLs it already indexed are kept but eventually dropped. A short maintenance window with a 503 is fine. A 503 that lasts for days risks pages disappearing from search results. - Show a human-readable page with the reason and the expected time back.
- Clear stuck maintenance flags, such as the WordPress
.maintenancefile. - Add capacity or limits before you need them. Shedding load with a quick 503 and a
Retry-Afteris better than letting every request run slowly until the server falls over.
If a script or scraper gets a 503
A 503 is a request to back off, and it applies to everyone, not just you. Three rules:
- Honor
Retry-After. Its value is either a number of seconds or a date, as defined in RFC 9110. - Without it, wait longer after each failure, for example 1, 2, 4 and 8 seconds, with a little random variation so that many clients do not retry at the same moment.
- Give up after a fixed number of attempts, and slow down your whole job when 503s keep coming. If you send many requests in parallel, send fewer.
We tested this with a small server that answers /flaky with a 503 and Retry-After: 1 twice, and then with a 200. The client uses requests with urllib3's retry support:
import time
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
retry = Retry(
total=4,
status_forcelist=[502, 503, 504],
respect_retry_after_header=True,
backoff_factor=0.5,
)
session = requests.Session()
session.mount("http://", HTTPAdapter(max_retries=retry))
session.mount("https://", HTTPAdapter(max_retries=retry))
start = time.time()
response = session.get("http://127.0.0.1:9001/flaky", timeout=5)
print(response.status_code, response.text, f"after {time.time() - start:.1f}s")It printed:
200 hello from upstream after 2.0sThe two seconds are the two Retry-After: 1 waits. The client did not guess a delay, it did what the server asked. Two details of urllib3 are worth knowing. It only retries idempotent methods by default, which are GET, HEAD, PUT, DELETE, OPTIONS and TRACE, so a POST is not repeated unless you allow it. And a Retry-After header on a 413, 429 or 503 response triggers a retry even when the code is not in status_forcelist. Whenever it does retry and the header is present, it waits for the time the server asked for. Without the header it uses the backoff factor.
If the 503s begin soon after you speed a scraper up, you may have caused them. Rate limiting for scrapers explains how to find a pace a site tolerates, and why websites block IPs and proxies covers the cases where a 503 is a polite way of saying no. If the errors only appear through a proxy, our guide to fixing common proxy errors lists the proxy-side causes.
Try it yourself
Create an account, add funds from US$1 and order a proxy in the country you need.
Keep reading
25 Nov 2026 · Troubleshooting
409 Conflict explained
A 409 means your request conflicts with the resource's current state. The duplicate case, the lost update case, and how ETag and If-Match prevent both.
25 Nov 2026 · Troubleshooting
405 Method Not Allowed explained
A 405 means the URL exists but rejects your HTTP method. The Allow header says which methods work, and most 405s come from one of five causes.