HTTP status code lookup

503 Service Unavailable: Causes and Fixes

A 503 Service Unavailable response means the server is temporarily unable to handle the request, usually because it's overloaded, down for maintenance, or a proxy has no healthy backend to send the request to.

The word that matters is temporarily: a 503 says to try again later, and can say when with a Retry-After header.

503

Service Unavailable

The server can't handle the request right now, usually because it's overloaded or down for maintenance.

Look up any other status code →

Common causes

  • Too much traffic for the available servers, or a connection or worker limit has been reached.
  • Planned maintenance or a deploy in progress.
  • A load balancer or ingress has no healthy targets: every backend failed its health check, or none are registered.
  • In Kubernetes, the Service has no ready endpoints because the pods are crashing or their readiness probes fail.
  • A rate limiter or circuit breaker that answers with 503 instead of 429.

Where to look

SetupCheck
Kubernetes / ingresskubectl get endpoints <service> should list pod IPs. If it's empty, check kubectl get pods and the readiness probe.
AWS load balancerTarget group health in the console. A 503 from the load balancer means no healthy targets.
Envoy or a service meshno healthy upstream in the response body means the same: every backend is failing its checks.
nginxThe error log, and any limit_req or limit_conn rules, which return 503 by default when a limit is hit.

Returning 503 for maintenance

Tell clients and search engines that the outage is temporary and when to come back:

HTTP/1.1 503 Service Unavailable
Retry-After: 600
Content-Type: text/html

<h1>Down for maintenance</h1>
<p>We'll be back in about 10 minutes.</p>

Frequently asked questions

Does a 503 hurt my search rankings?

A short 503 with Retry-After is the recommended way to signal planned downtime, and Google will come back later. If pages return 503 for days, they can start dropping out of the index.

What is the difference between 503 and 502?

502 means the upstream sent a bad response. 503 means the service can't take requests at the moment, often because there's no healthy upstream at all or it's deliberately refusing load.

Should my API retry on 503?

Yes, with exponential backoff and jitter, and respect Retry-After when it's there. Retrying immediately in a tight loop adds load to a service that's already struggling.

More http status code lookup guides

Open the full http status code lookup →

From the blog