503 Service Unavailable: what it means and how to fix it
A 503 Service Unavailable means the server is temporarily unable to handle the request, usually because it is overloaded or down for maintenance. It signals a temporary condition, and a well-built 503 includes a Retry-After header saying when to try again.
- Temporary by definition: the server is up but cannot serve right now.
- Visitors: wait a few minutes and retry. Nothing on your side causes it.
- Owners: tell overload and maintenance apart, then send Retry-After and no-store on planned 503s.
What causes a 503 error?
| Cause | Signs | Fix |
|---|---|---|
| Planned maintenance | A maintenance page, often with Retry-After | Finish the work, then remove the maintenance flag |
| Traffic spike or overload | Slow pages first, then 503 under load | Add capacity, cache, or rate limit abusive clients |
| Exhausted worker pool | App server logs show no free workers or a full queue | Raise worker limits or fix slow requests holding workers |
| Resource limits | Memory, CPU or connection-pool limits reached | Raise limits, or reduce load per request |
| Failed health checks | Load balancer marks every backend unhealthy | Fix the health endpoint or the backends it checks |
| Hosting plan limits | Shared hosting suspends or throttles the account | Check the host dashboard and your plan usage |
MDN says servers may return 503 when memory, CPU or connection-pool limits are reached: MDN: 503 Service Unavailable.
What should a planned maintenance 503 look like?
HTTP/1.1 503 Service Unavailable
Content-Type: text/html
Retry-After: 120
Cache-Control: no-store
<h1>Down for maintenance</h1>
<p>We will be back shortly.</p>Retry-After tells clients and crawlers when to return. no-store stops caches from keeping the error page after the fix.
How do you fix a 503 as a site owner?
- 01
Check for a maintenance flag
Look for a maintenance file, a CMS maintenance mode, or an updater that left the site locked after a failed run.
- 02
Check load and workers
Look at CPU, memory and the app server worker pool. A full pool with a queue returns 503.
- 03
Look at the access log
Find the source of the traffic. A bot, a crawler or a viral link can overwhelm a small server.
- 04
Check the load balancer
If health checks fail, every backend looks down. Test the health URL directly.
- 05
Scale or throttle
Add capacity, cache heavy pages, or rate limit clients. For individual abusive clients, 429 is the right response, per MDN.
- 06
Verify from outside
Reload from another network, or use the website status checker, to confirm the fix.
How does Google treat a 503?
Slower
Google temporarily slows crawling when it gets 5xx responses, including 503
Source: Google Search Central
Kept first
Already indexed URLs are kept at first but dropped if the server error persists
Source: Google Search Central
Keep maintenance windows short
Serve the maintenance page with a real 503, not a 200 or a redirect to a static page. A 200 tells search engines the maintenance text is your content. Hours of 503 are fine, but days risk deindexing, as the persistent server error behavior above shows.
Common questions
What does 503 Service Unavailable mean?
It means the server is not ready to handle the request right now, usually from overload or maintenance. The condition is expected to be temporary. The server itself is reachable, since it sent the response.
How long does a 503 error last?
It depends on the cause. Planned maintenance usually runs minutes to hours and a good page includes Retry-After. Overload clears when traffic drops or capacity is added. A 503 lasting more than an hour on an unplanned basis needs a person to investigate.
Is a 503 error my fault?
As a visitor, no. The server is declining requests, not rejecting yours. Wait a few minutes and retry. If it persists, contact the site owner. Only a site owner or host can remove the cause.
What is the difference between 503 and 502?
A 503 says the server is temporarily unable to handle requests. A 502 says a gateway got an invalid response from the server behind it. A 503 often involves load or maintenance, while a 502 points at a failing upstream.
Does a 503 hurt SEO?
Short 503s are fine. Google slows crawling and retries. If 503s persist, indexed URLs can be dropped. During planned downtime, send 503 with Retry-After instead of 200 or 404, so crawlers know to come back.
Keep reading
Watch your domains automatically
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.