HTTP 503 Service Unavailable means the server is temporarily not able to handle the request, usually because of overload or maintenance. It is defined in RFC 9110, section 15.6.4. The condition is expected to end, and the server may say when with Retry-After.
HTTP/1.1 503 Service Unavailable
Retry-After: 600
Content-Type: text/html
<h1>Back soon</h1><p>We are updating the site. Please try again in ten minutes.</p>
The right code for maintenance
For planned downtime, 503 with Retry-After is better than any alternative:
- A 200 page that says “maintenance” is indexed as your content, and visitors’ tools think everything is fine.
- A 404 or 302 may make search engines drop or move the page.
- A 503 says “come back later”. Google and other crawlers keep the URL and retry, and monitoring tools raise the right alarm.
Retry-After accepts seconds (600) or an HTTP date (Sun, 25 Oct 2026 10:00:00 GMT). If you use a date, check it with the Unix timestamp converter so it is in GMT and in the future.
What makes a server answer 503
- Overload: all workers are busy, the queue is full, or a connection limit was hit. The load balancer or the application sheds load on purpose.
- A deploy or restart during which no instance is ready.
- A dependency is down and the application chooses to fail fast.
- Circuit breakers and quotas open when error rates are high.
- Kubernetes and load balancers: the ingress has no ready endpoints, or all targets are unhealthy. Look at
kubectl get endpoints <service>, the readiness probe and the target group’s health. - A hosting plan that suspends an account over resource limits (shared hosting often does this).
For clients
Respect Retry-After, and otherwise retry with exponential backoff and jitter (see 429). Do not hammer a server that says it is unavailable. For a GET, retries are safe; for a POST, make sure the request is idempotent (an idempotency key) before you repeat it, because the failure may have happened after the work was done.
Capacity or a fault?
If 503 appears under high load and disappears afterwards, you have a capacity problem: add instances, add a cache, or reduce the work per request. If it appears for all requests at once, look for a fault: a failed deploy, a dead dependency. A graph of the 503 rate against the request rate tells you which of the two it is.
The HTTP status codes tool opens 503 and 429 together to compare their wording. For gateway-level failures see 502 and 504.
Frequently asked questions
Is a 503 bad for my search ranking?
A short 503 is the way to tell search engines that the downtime is temporary: they keep the pages in the index and come back later. A 503 that lasts for days is another matter, and pages may start to drop out.
What should a maintenance page return?
503 with a Retry-After header, not 200 and not 404. With 200, crawlers index the maintenance text as your content; with 404 they may remove the page.
Why does Kubernetes show 503?
The ingress or service found no ready pod to send the request to: pods are still starting, failing their readiness probe, or were all removed. Check kubectl get endpoints and the readiness probe.
What is the difference between 503 and 429?
429 is about one client who sends too much and could slow down. 503 is about the server being unable to serve anyone for now. Both may carry Retry-After.
More in this reference
- HTTP 301 Moved Permanently: redirects, caching and SEO
- HTTP 302 Found: temporary redirects, and when to use 303 or 307 instead
- HTTP 304 Not Modified: how conditional requests and ETags save bandwidth
- HTTP 400 Bad Request: the common causes and how to find the bad part
- HTTP 401 Unauthorized: missing or invalid credentials, and 401 vs 403
- HTTP 403 Forbidden: why access is refused and how to fix it
- HTTP 404 Not Found: causes, how to debug it and what to return instead
- HTTP 429 Too Many Requests: what it means and how to handle it
- HTTP 500 Internal Server Error: how to find the cause and what to tell users
- HTTP 502 Bad Gateway: finding the broken link between the proxy and the app
- HTTP 504 Gateway Timeout: why the proxy gave up waiting, and the timeouts to check