HTTP 503 · 5XX RFC 9110 §15.6.4 Cacheable: No Retryable: Yes (honor Retry-After)

HTTP 503 Service Unavailable: Root Causes & Production Fix Guide

HTTP 503 Service Unavailable signals that the server is temporarily overloaded or down for planned maintenance. Returning a proper `Retry-After` header protects your SEO rankings and prevents retry storms.

Top Root Causes of HTTP 503

Nginx Clean Maintenance 503 with Retry-After

location / {
    if (-f /var/www/maintenance.flag) {
        return 503;
    }
    proxy_pass http://127.0.0.1:3000;
}
error_page 503 @maintenance;
location @maintenance {
    add_header Retry-After 300 always;
    add_header Cache-Control "no-store" always;
    root /var/www/static;
    try_files /maintenance.html =503;
}

Verify with cURL

curl -i -sS https://example.com/

Interactive Stack Diagnoser (HTTP 503)

Frequently Asked Questions

Will a 503 maintenance page hurt my Google SEO?

No—if the outage is temporary and you return HTTP 503 with a `Retry-After` header, Googlebot knows to come back later without de-indexing your pages.

When should I return 503 vs 429?

Return 429 when a specific client exceeded its rate limit; return 503 when the service itself is overloaded or in maintenance.

How long can a site return 503 before crawlers drop pages?

Extended multi-day 503 outages may eventually be treated like permanent failures, so keep maintenance windows short.

Related Status Guides & Header Tools