HTTP 429 Too Many Requests — how do I handle rate limiting?

A 429 means the request hit a rate limit. Look at the requests leading up to it. A burst of parallel calls, a polling loop or clients sharing an API key can use the same quota. An immediate retry can add more traffic at exactly the wrong time.
Read Retry-After when the server supplies it. It can be a delay in seconds or an HTTP date. Use bounded backoff with jitter and limit concurrency where the requests are generated. Cache repeat reads when the application can safely reuse the result.
const response = await fetch('/api/search'); if (response.status === 429) { const retryAfter = response.headers.get('Retry-After'); console.warn('Rate limited; retry after:', retryAfter); }
Check how the client behaves when that header is absent, too. The retry policy should eventually stop and should not turn an ordinary rate-limit response into an endless loop.
Measure request volume by endpoint before and after backoff, including calls triggered by retries and polling.