Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 503 Service Unavailable
5xx Server Error

HTTP 503 Service Unavailable

HTTP 503 Service Unavailable means the server is temporarily unable to handle the request, because it is overloaded, down for maintenance or rate limiting.

Quick answer

HTTP 503 Service Unavailable means the server is temporarily unable to handle the request, because it is overloaded, down for maintenance or rate limiting. It signals that the problem should pass, and a Retry-After header can tell clients and crawlers when to come back.

Last updated · Maintained by FreeAIToolz · How we test

What does HTTP 503 Service Unavailable mean?

503 is the correct code for planned maintenance: Google treats it as temporary and keeps your pages indexed if the outage is short. Serving a maintenance page with 200 risks having that page indexed instead.

Status code503
NameService Unavailable
Class5xx Server Error
Defined inRFC 9110 §15.6.4
Cacheable by defaultNo, unless Cache-Control says so
Safe to retry automatically?Yes, with backoff
Related headersRetry-After

What causes HTTP 503?

  • Planned maintenance mode.
  • Server overload or exhausted worker pool.
  • Autoscaling not keeping up with traffic.
  • An upstream dependency failing health checks.

How do I fix HTTP 503?

  1. Use 503 with Retry-After during maintenance, and keep it short (hours, not days).
  2. Scale workers or instances; add caching for heavy pages.
  3. Check health-check configuration on the load balancer.

What should a client do after HTTP 503?

Wait for Retry-After (or back off exponentially) and retry.

Does HTTP 503 affect SEO?

The right code for maintenance. Google tolerates short 503 periods; if 503 lasts more than a few days, URLs may start to be dropped.

Example 503 response

HTTP/1.1 503 Service Unavailable
Date: Mon, 01 Dec 2026 12:00:00 GMT
Retry-After: 3600
Content-Type: application/json

{"error":{"status":503,"message":"Service Unavailable"}}

How to return 503 Service Unavailable in code

Express (Node.js)

res.status(503).json({ error: 'Service Unavailable' });

Next.js route handler

return Response.json({ error: 'Service Unavailable' }, { status: 503 });

FastAPI (Python)

raise HTTPException(status_code=503, detail="Service Unavailable")

PHP

http_response_code(503);

Nginx

location = /example {
    return 503;
}

Other 5xx status codes

The server failed to fulfil a valid request. Retrying later, with backoff, is usually reasonable.

Frequently asked questions

Which status code should I use for maintenance?
503 with a Retry-After header. It tells Google the outage is temporary so pages stay indexed.
503 vs 500?
503 says the server is temporarily unavailable and should recover. 500 says something broke.
Is 503 a client or server error?
503 is in the 5xx class, a server error: the request may be fine, but the server could not complete it.