---
title: "Put the outage in the response the agent is holding"
description: "During an outage, put the wait on the HTTP response. Send 503 and Retry-After. A human status site does not reach an agent that never opens it."
canonical: "https://www.agentrail.co/blog/status-page-for-ai-agents?h=6PVGEHAPNDV6C00K"
author: "Vivek Mittal"
published: "2026-12-01T13:00+00:00"
last_updated: "2026-11-30T13:00:20.644Z"
---

# Put the outage in the response the agent is holding

During an outage or maintenance window, put the wait on the HTTP response. Send 503 and Retry-After. A human status site does not reach an agent that never opens it.

During an outage or a maintenance window, put the wait on the HTTP response the agent is holding. A status site written for people doesn't reach an agent that never opens it.

Retry-After is the header a server sends to say how long to wait before the next request. The shape of an ordinary error body stays on [API errors an agent can retry](https://www.agentrail.co/blog/api-error-messages-for-ai-agents?h=6PVGEHAPNDV6C01H). This page owns the wait during downtime.

> **Key Takeaways**
>
> • The agent is holding your response. It doesn't open your status site.
>
> • 503 means temporary overload or scheduled maintenance. Retry-After says how long the service is expected to be unavailable.
>
> • The header value is an HTTP date or a non-negative integer number of seconds. The server may send it. It is not required.
>
> • A status site is still for people, subscribers, and incident history.
>
> • Don't retry before the header says. After the wait, confirm the service answered.

## The agent does not open your status site

An agent calls your API and reads what came back. It doesn't browse a status hostname, open an incident, or subscribe to updates. If the wait lives only on that site, the agent doesn't have the wait.

A human status website is a separate surface. There is no standard JSON status-page format to put beside it. Don't invent one and call it the protocol. The agent is holding the HTTP response. That response is where the wait belongs.

People should still open the status site. The component list, the narrative, and the history are for them. The agent in the middle of a task will not make that trip. Serve both surfaces. Don't make the person-facing page the only copy of the delay.

A link to the status site inside a body is a hint for a person reading logs. It is not a wait the agent can execute. The agent needs a duration or a time on the response it already has. A URL it will not fetch doesn't carry the delay.

Assume the turn is short. The agent will take the next action from the status code and the headers it can parse. A well-written incident post helps your on-call and your customers. It doesn't help this call unless the same fact is on the response.

If your status site is accurate and your API returns 200, you told two stories. The person sees maintenance. The agent sees success and continues the task against a service you meant to pause. The response has to match the window.

## 503 and Retry-After

503 Service Unavailable means temporary overload or scheduled maintenance. That is RFC 9110 section 15.6.4 ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110)). Retry-After on that response indicates how long the service is expected to be unavailable. The server may send the header. RFC 9110 section 10.2.3 defines it. It is optional.

Send it when you are in an outage or a maintenance window and you can name the wait. The spec allows you to omit it. The agent then knows the failure is temporary and doesn't know how long to wait. What to do when the header is missing, including on 429, stays on [API rate limit headers for AI agents](https://www.agentrail.co/blog/api-rate-limit-headers-for-ai-agents?h=6PVGEHAPNDV6C02F). This page is the window where you can name the wait.

MDN summarizes the same header. On a 503, it indicates how long the service is expected to be unavailable ([Retry-After](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After)). Use that meaning. Don't invent a parallel field with a different unit and hope every client reads your field first.

Use 503 for overload and for planned maintenance. Don't use 200 with a sentence that says you are down. The agent can branch on the status. A success status with bad news in prose is how a paused service gets treated as a finished call.

The ordinary error body stays on the API errors page. A 503 can include a short sentence for a person reading the log. The wait itself is the header. Don't bury the delay only in a sentence the agent might skip, and don't copy the whole incident post into the body.

Pick 503 when the service cannot do the work yet. A 400 means the request was wrong. A 503 means the request may be fine and the service wants time. Mixing those teaches the agent to edit a payload that didn't fail validation.

## A date and a number of seconds

The header value is an HTTP date or a non-negative integer number of seconds. Both are legal. Pick the one that matches the fact you know.

Seconds fit a delay you can count. A window that ends at a clock time fits a date. Don't send a date when you mean a short cooldown unless that date is the true end. Don't send a second count that undercuts the end time you published to people.

MDN shows the two shapes as format examples, not as a recommended length for your outage:

`Retry-After: Wed, 21 Oct 2015 07:28:00 GMT`

`Retry-After: 120`

The date example is an HTTP date. The integer example means 120 seconds. Your value should be the wait you mean. Copy the shape. Don't copy 120, and don't copy that 2015 timestamp, unless they happen to be your window.

If you know the window ends at a timestamp, send the date. If you know a cooldown in seconds, send the integer. If you know neither, you don't have a Retry-After yet. Don't print a house default as if the standard required it.

Zero seconds means no remaining wait. Sending zero during an ongoing outage tells a client it may call again immediately. Send zero only when the service can take the call. A negative number is not a legal delay.

Keep the status site and the header on the same facts. If the site says maintenance until 18:00 UTC, the date header should name that end, not a different instant. The agent follows the header. A person follows the site. Two clocks produce two stories, and the agent will act on the one in the response.

When the window slips, send a new 503 with a new header. The latest response replaces the previous wait. Don't expect the agent to remember an earlier date once you have issued another.

## What a status site is still for

Keep the status site. A person reads what broke, which components are affected, and when you last updated the note. Subscribers, support, and your on-call rotation use that page. The agent in a tool call doesn't.

Use the site for history. An incident that lasted an hour is a story with updates. The HTTP response is a single wait. Don't stuff the timeline into the header. The header carries one delay or one end time. The site carries the narrative.

Use the site when a person must choose a workaround. The agent needs that workaround as a request it can make, or it needs the wait. A paragraph that says to use a backup and then "see the status page" sends the agent to a page it will not open. If the backup is a different host the agent should call, put that instruction in a response you are willing to support as an API. Until then, keep serving 503 with Retry-After until the primary can answer.

If only one route is down, return 503 on that route and keep serving the routes that are up. A site-wide banner beside a healthy JSON body tells the person one story and the agent another.

Don't publish a JSON mirror of the status site and describe it as a standard. RFC 9110 gives you the status code and the header for the wait. That is the machine contract. Extra fields you add are your own API, and the ordinary error-body page owns that shape.

## Do not retry before the header says

When Retry-After is present, the agent should wait at least that long before the next request. Retrying sooner adds load to a service you marked unavailable. It spends the turn on calls you already declined to answer.

The header is a wait, not a hint to edit the payload. The arguments didn't fail validation. The service asked for time. Changing the body and calling immediately ignores the header.

How you count that loop, as one stuck attempt rather than a pile of incidents, stays on [counting the retry loop](https://www.agentrail.co/blog/agent-retry-loop?h=6PVGEHAPNDV6C03D). This page sets the wait. The count of repeats lives on that page.

A date in the past means the stated wait has elapsed. A date in the future means wait until then. An integer counts as seconds. Document that for a client you ship. Don't add a secret extra delay on top as house style. The header is the wait you published.

429 Too Many Requests is a different condition. RFC 6585 section 4 says the response should explain the condition and may include Retry-After. It also says 429 responses must not be stored by a cache. The RFC doesn't define how you identify the caller or how you count requests ([RFC 6585](https://www.rfc-editor.org/rfc/rfc6585)). Rate-limit policy stays on the rate-limit page. An outage and a quota can both carry Retry-After. The status code is what the agent should branch on. Don't describe a maintenance window as a 429 to reuse a quota message.

If your client retries on a timer that ignores headers, fix the client. A server that sends Retry-After has done the part this page owns. A client that calls again in one second has thrown the wait away. Test that pair before you blame the status site.

## Confirm the service answered after the wait

After the wait, one more request checks whether the service answered. A 200 or a normal 4xx means this call is no longer the outage response. A second 503 with a new Retry-After is a new wait. Follow the new header. Drop the old delay once a newer response replaced it.

The task can still be incomplete after the service answers. Finish is the outcome of the task. The check on this page is narrower. The outage response should be gone before you judge the task.

Read the 503 and the later call on the same task. Those steps come back together in [agent journey analytics](https://www.agentrail.co/blog/agent-journey-analytics?h=6PVGEHAPNDV6C04B). A chart of 503s without the later call hides whether the agent waited and then got an answer.

If you never see a later call, the agent may have stopped at the 503. That is an unfinished task. You cannot tell from the status site whether it obeyed the header. You can tell from the task, if you stored the response and looked for the next request after the wait.

Scheduled maintenance is the clean case. Send 503, send Retry-After with the end, and look for calls that arrive after that end. Overload moves. The date or the seconds may change as you learn more. Each response replaces the previous wait. The agent should follow the latest header it received.

When the service answers, stop emitting 503 for that route. A leftover 503 after the window tells the agent the downtime is still on. Clear the status site on the same clock. One end time, both surfaces.

## Frequently Asked Questions

### Should the agent open our status page during an outage?

Put the wait on the 503 it is holding, in Retry-After. The status page remains for people. The agent doesn't need to open it to learn the delay.

### Is Retry-After required on 503?

The server may send it. RFC 9110 doesn't require it. Send it when you know the wait. Without it, the agent knows the outage is temporary and doesn't know how long to wait.

### Do we send seconds or a date?

Send a non-negative integer of seconds for a delay you can count. Send an HTTP date when the window ends at a clock time. MDN's examples show the shapes, not your outage length.

### What is the status site for?

People, subscribers, and the incident history. The agent uses the response it already holds. Keep the site. Don't make it the only place the wait is written down.

Put the wait on the response, keep the status site for people, and check the next call after the header's delay. That pair, the 503 and the call that follows, is visible on [agent journey analytics](https://www.agentrail.co/blog/agent-journey-analytics?h=6PVGEHAPNDV6C04B).
