What's going on
503 means the server is up but temporarily can't handle requests, generally because it's overloaded, in maintenance mode, or has no healthy backend servers to send traffic to.
503 is meant to be temporary. Well-configured sites send a Retry-After header during maintenance.
What you'll see
- “503 Service Unavailable” or “Service Temporarily Unavailable.”
- The whole site is down briefly, then recovers.
- It coincides with traffic spikes or a scheduled job.
Common causes
- The application is in maintenance mode (e.g. a framework’s “down” flag).
- The backend pool has no healthy instances, or all workers are busy.
- CPU, memory, or connection limits are exhausted.
- A dependency (database, cache, queue) is unavailable.
How to fix it
- Check whether the app is in maintenance mode or the load balancer shows zero healthy targets, and bring instances back up.
- Inspect CPU, memory, worker count and connection limits; scale out or raise limits to match demand.
- Restart the service, clear any stuck queue or cache, and confirm dependencies are reachable.
Command
curl -o /dev/null -s -w "%{http_code} %{time_total}s\n" "https://example.com/"
Run it a few times to see whether 503s are constant or intermittent, and how response time behaves.
Stop it happening again
Right-size autoscaling, add health checks, and use a real maintenance page with Retry-After for planned work.
