Retry-After header

The Retry-After HTTP response header tells a client how long to wait before retrying a request or gives a date after which it may retry. A rate-limited server can use it to communicate when a rejected request may be attempted again.

Learn this concept

Lesson 1.9 · Rate limiting: why, and the five algorithms

Used in exercises

Exercise 1.18 · RateLimit HTTP middleware that returns 429 Exercise 1.30 · Optional: X-RateLimit response headers Exercise 3.24 · POST /v1/auth/login: rate limit attempts Exercise 4.20 · API request retry utility
Prerequisite conceptsHTTP 429 Too Many Requests