Choose a way to do this check
Browser Network
- Run a GET against the intended staging route during the approved fixture.
- Check status, Retry-After and Cache-Control, then confirm that recovery restores the normal page.
Crawler export comparison
- Compare a crawl captured during the incident with a recovery export.
- Use matching URLs and settings so a missing record does not look like an HTTP improvement.
Read outage headers
- Paste the incident and recovery response headers.
- Check whether a 503 or 429 persists at the public edge after recovery.
1. Return the status that fits the condition
Use 503 when a route cannot serve its normal content temporarily, for example during planned application maintenance. Use 429 when a client has exceeded a request limit. Keep unaffected pages available where possible and use a small, self-contained status page that can load even when the application is offline.
Do not put a permanent redirect in front of a temporary incident. Returning a regular 200 with an apology also makes the event harder to detect with uptime checks. If maintenance will last longer than expected, keep the incident channels updated and restore important content as soon as it is safe. Prolonged errors can affect crawling and indexing.
2. Give clients a sensible retry hint
Retry-After can be a delay in seconds or an HTTP date. Use a realistic estimate. Clients decide whether and when to retry, so the header is a hint rather than a guarantee. In a planned maintenance handler, set headers and the status before rendering the page.
<?php
http_response_code(503);
header('Retry-After: 600');
header('Cache-Control: no-store');
require __DIR__ . '/views/maintenance.php';
exit;A rate-limited endpoint should return 429 for the request it throttles. Configure the limit where you can apply it accurately. Confirm how the edge responds to clients sharing an address or to search crawler traffic you expect. Use a controlled staging fixture for a throttling test instead of generating load against production.
3. Check the incident response and recovery
Use a public GET through the same host and CDN a visitor uses. Inspect status, Retry-After and cache headers. Record a known healthy route as a control. Run the check once while the fixture is active and again after restoring the normal route.
curl -sS --max-time 15 -D response-headers.txt -o response.html \
https://www.example.com/guides/
grep -Ei '^(HTTP/|retry-after:|cache-control:|age:)' response-headers.txtCheck the HTML body as well as the headers. Ensure a CDN custom error page has not changed the status or retained it after recovery. Confirm that the recovered page returns its normal status and content, and that any temporary rules were removed. Compare the result from a second approved network or monitor if traffic is routed through multiple regions.
4. Keep enough evidence for the next incident
Record the affected routes, when the incident started and ended, and which layer served the response. Note whether limit responses came from the application or from the edge. Confirm that scheduled monitoring distinguishes maintenance from unexpected failures. If a deployment leaves stale errors in front of healthy content, restore the last healthy route rules and clear only the affected cached entries through the normal procedure.
Technical references
Frequently asked questions
Should maintenance return status 200?
Return 503 on temporarily unavailable routes so clients can distinguish the outage from normal content.
Does Retry-After force a crawler to wait?
No. It communicates a suggested delay or date.
When should I use 429?
When a request is rejected because it exceeded a request limit.
Should I test a rate limit by sending many requests to production?
Use an authorised staging fixture or observe existing requests in logs.
Written by Richie Aubin
Published
