503 Service Unavailable

The service is temporarily unable to handle the request, often because it is overloaded, unavailable or in maintenance.

All HTTP status codes

What does HTTP 503 mean?

A 503 can be an intentional maintenance response or a symptom of a service with no usable capacity. Inspect the body, response headers and emitting layer to tell them apart. Retry-After can communicate a proposed delay, but clients should not be assumed to follow it. A polished maintenance page should retain the appropriate status instead of disguising the interruption with 200.

An investigation example

Illustrative capacity investigation
Response: 503 Service Unavailable
Load balancer reports no healthy application targets.
A failing readiness check removed every instance.
Action: repair the readiness dependency and restore healthy targets.
Verify: normal requests and the health route remain available under representative load.

Common causes

  • Maintenance mode remains enabled during or after a release.
  • All application workers are busy, the request queue is full or a platform capacity limit has been reached.
  • A load balancer has no backend passing readiness checks, including during a rolling deployment.
  • An application deliberately stops accepting traffic when its database, cache or another essential dependency is unavailable.
  • A protective limit rejects excess traffic before the application becomes completely unresponsive.

Diagnose the response

Identify whether maintenance policy or exhausted capacity produced the response, then restore service before relaxing the availability expectation.

  • Identify which layer generated the response and whether maintenance was scheduled. Check application maintenance flags, platform events and load-balancer health before assuming the origin crashed.
  • Compare request volume, queue depth, worker utilisation and dependency latency around the incident. A slow database can exhaust application capacity even when the web server itself has spare CPU.
  • Review readiness checks and deployment sequencing if the failure began during a release. Keep healthy instances available until replacements are actually ready, and inspect why checks rejected each backend.
  • For overload, reduce avoidable work and restore bounded capacity. Adding workers without checking database or downstream limits can move the bottleneck and make the incident worse.
  • Respect Retry-After where supplied and use bounded backoff for safe retries. For a payment or another write with an uncertain outcome, verify operation state or use supported idempotency before trying again.
  • After the repair, confirm maintenance is disabled, readiness checks pass and the public page returns its normal content and status. Check whether any intermediary retained the maintenance response.

What it means for website monitoring

Record planned maintenance separately from unexpected downtime in the incident investigation. After restoring service, check the public route and capacity rather than merely dismissing the maintenance page.

Reference