HTTP 503 Service Unavailable — Retry-After Explained
Error5xx server error
Overview
HTTP 503 Service Unavailable with Retry-After header tells clients when to retry. The server is temporarily overloaded or in maintenance.
Key Details
- 503 means the server is alive but cannot handle the request right now
- Retry-After header specifies seconds or a date when the service will be available
- Different from 500 (server error/bug) — 503 is intentional and temporary
- Load balancers return 503 when all backend servers are unhealthy
- Used during planned maintenance windows
Common Causes
- Server under heavy load exceeding capacity
- Planned maintenance with server intentionally returning 503
- All backend servers behind a load balancer are down
- Rate limiting at the infrastructure level
- Deployment in progress with rolling restart
Steps
- 1Check the Retry-After response header for when to try again
- 2If you manage the server, check backend health and scale up resources
- 3Review load balancer health checks — backends may be failing
- 4Check server logs for the underlying cause (memory, CPU, connections)
- 5If during deployment, wait for the rollout to complete
Tags
http503service-unavailableretry-aftermaintenance
More in 5xx Server Error
http-500-internal-server-errorHTTP 500 Internal Server Error — What It Means & How to Fix It
Criticalhttp-501-not-implementedHTTP 501 Not Implemented — What It Means & How to Fix It
Criticalhttp-502-bad-gatewayHTTP 502 Bad Gateway — What It Means & How to Fix It
Criticalhttp-503-service-unavailableHTTP 503 Service Unavailable — What It Means & How to Fix It
Criticalhttp-504-gateway-timeoutHTTP 504 Gateway Timeout — What It Means & How to Fix It
Criticalhttp-505-http-version-not-supportedHTTP 505 HTTP Version Not Supported — What It Means & How to Fix It
CriticalFrequently Asked Questions
502 Bad Gateway means the server got an invalid response from an upstream server. 503 means the server itself is too busy or in maintenance.