Retry-After Header Explained

What the HTTP Retry-After header does and when it's used.

Published October 16, 2026

Retry-After tells the client how long to wait before retrying, as seconds or an HTTP date. It accompanies 429, 503 and some 3xx responses.

How it works

Well-behaved clients and crawlers respect it.

The Retry-After header is part of the HTTP message and is case-insensitive in name.

In a real exchange

curl -i https://example.com/
Retry-After: 120
Where Retry-After appears.

Practical examples

The header

Retry-After: 120

Set or use it in code

res.set('Retry-After', '120')

Inspect it

curl -sI https://example.com | grep -i 'retry-after'

Common mistakes

  • Not sending it with 429/503
  • Clients ignoring it and hammering the server
  • Wrong date format

Key takeaways

  • Retry-After: Retry-After tells the client how long to wait before retrying, as seconds or an HTTP date.
  • Check it in browser DevTools → Network.
  • Test with curl -I before deploying.

FAQ

Seconds or date?

Either: a number of seconds or an HTTP-date.

Is Retry-After case sensitive?

Header names are case-insensitive; values may not be.

More HTTP articles