Plan a temporary 503 page for website maintenance
A maintenance page needs two jobs: tell visitors what to do now, and tell HTTP clients that the interruption is temporary. A polished page served as 200 OK can be mistaken for normal content. Plan the message and response together, then test what the public URL actually returns.
Boletolibre editorial team
Published
1. Decide which requests are unavailable
Use 503 Service Unavailable when a server temporarily cannot handle a request because of scheduled maintenance or overload. If a public information page still works normally, it can keep serving its real content; do not replace every route merely because one external component is unavailable. Map the exact hostnames and paths that will be paused.[1]
| Request during the window | Planned response |
|---|---|
| Temporarily unavailable page or action | 503 with a clear maintenance message |
| Unaffected public information page | Normal page and its normal status |
| robots.txt on a site paused for Google Search | Keep it available; do not return 503 for it |
Google’s current guidance says to keep robots.txt accessible during a temporary site pause and to avoid hiding the site with 403, 404, 410 or noindex. A long-running 503 can also disrupt crawling and indexing, so use it for a genuinely short interruption and restore normal responses promptly.[4]
2. Return 503, not just maintenance-themed HTML
The status line must be 503 on the public URL, including when a CDN or reverse proxy serves the page. A 200 response containing “under maintenance” tells automated clients the temporary notice is ordinary page content. A redirect to a 200 maintenance page has the same ambiguity for the original URL. Verify the final status from outside the origin, not only in a local preview.[1][4]
Keep the page small and self-contained so it does not rely on the application that is being maintained. Google recommends static HTML with minimal external resources for a 503 page. Give the visitor a plain heading, what is temporarily unavailable, the next update or best-effort return time with timezone, and a working contact or status link only if one exists.[4]
- Do not claim purchases, bookings or form submissions succeeded unless that has been independently verified.
- Avoid automatic rapid refreshes that add load while service is unavailable.
- Make links and text usable with keyboard and without images.
3. Give a credible retry estimate
Retry-After is optional with 503. It may be a non-negative number of seconds or an HTTP date. It suggests when a client should retry; it is not a guarantee that every browser, crawler or service will obey it. Use it when you have a defensible estimate and update the header and visible message if the window changes.[1][2]
| Situation | Practical choice |
|---|---|
| Short window with a reliable estimate | Set Retry-After to a sensible delay or HTTP date. |
| End time uncertain | Give a time for the next human update rather than inventing a firm recovery promise. |
| Service restored | Remove the 503 and Retry-After together. |
A 503 page should not linger in a cache after recovery. Review CDN and proxy error-caching rules before the window; an explicit Cache-Control: no-store directive tells conforming caches not to store that response. Confirm actual behavior in your delivery stack rather than assuming the directive overrides every provider setting.[3]
4. Rehearse both the failure and the return
Before maintenance, run a controlled test against the public hostname and affected path. Inspect the actual response status, Retry-After value, cache headers, content and links. Check one unaffected route and robots.txt. If the origin will be unavailable, confirm that the component serving the 503 page can still respond.[4]
At the end, retest the same URL and action. Confirm normal status and content, remove the temporary header, and check that CDN or browser caches are not replaying the notice. Observe the error rate for a short period, especially across more than one location if the site uses a CDN. Record who can reverse the maintenance routing if the restoration step fails.
5. Use a message visitors can act on
A useful message names the affected service, gives a realistic next update, and offers an alternative only if it is independently available. A vague “back soon” banner is less helpful than a dated update. Keep the same facts in every translated version and review the time zone before the window starts.
The editable template below includes six language versions, response-header fields and a go/no-go checklist. Replace bracketed fields with verified information; leave out any contact or alternate route you cannot support.
Sources and further reading
- RFC 9110 §15.6.4: 503 Service UnavailableIETF / RFC Editor · Accessed
- RFC 9110 §10.2.3: Retry-AfterIETF / RFC Editor · Accessed
- RFC 9111 §5.2.2.5: no-store response directiveIETF / RFC Editor · Accessed
- Temporarily pause or disable a websiteGoogle Search Central · Accessed