503 Service Unavailable

HTTP 503 Service Unavailable is a 5xx server error status. The server is temporarily unable to handle the request.

503Status code
5xxServer error
NoCacheable by default
RFC 9110 §15.6.4Defined in

Common causes

What to do

Send Retry-After. For maintenance, 503 tells search engines not to drop your pages.

Example response

HTTP/1.1 503 Service Unavailable
Retry-After: 120
Content-Type: application/json

{"error":"service unavailable"}

Returning 503 in code

Express   res.status(503).json({ … });
Flask     return jsonify(…), 503
PHP       http_response_code(503);
Go        w.WriteHeader(503)
nginx     return 503;

Other 5xx codes

Frequently asked questions

What does HTTP 503 mean?
The server is temporarily unable to handle the request.
Is 503 an error?
Yes. It is a server error: the request may be fine and the problem lies on the server or an upstream service.
Does a 503 hurt SEO?
A short 503 with Retry-After during maintenance is fine; a long-lasting one causes pages to be dropped.