Skip to content
5xx Server Error Safe to retry

503 Service Unavailable

The server is temporarily unable to handle the request — overloaded or down for maintenance.

What causes it

  • Deliberate maintenance mode.
  • The worker pool or connection pool is exhausted.
  • Autoscaling has not caught up with a traffic spike.
  • A dependency (database, cache) is unreachable and the app is failing fast.

How to fix it

  • Send a `Retry-After` header — it is the one status where clients genuinely act on it.
  • Check pool saturation before adding capacity; a slow query holding connections looks identical to a traffic spike.
  • Return 503, not 500, for planned maintenance: search engines will keep the page indexed.

At a glance

Class
5xx Server Error
Reference
RFC 9110 §15.6.4
Standardised
Yes
Retry the request?
Yes, with backoff

Other 5xx server error codes

Back to the full HTTP status code reference