Build and parse HTTP Retry-After headers for 429 Too Many Requests and 503 Service Unavailable responses. Supports both delta-seconds and RFC 7231 HTTP-date forms, with client backoff previews and ready-to-copy server snippets.
Build header
Both forms are valid per RFC 7231. Seconds is easier for clients to parse.
Will be formatted as IMF-fixdate (GMT) in the header.
Preview
Header line
Retry-After: 60
Full response
Notes
Parse an existing Retry-After header
—
Client backoff preview
If the server says "wait N seconds", how should a sensible client retry? These are rough guides — combine with jitter for production.