MDN Web Docs

Status

http

429 Too Many Requests

Examples

Response containing Retry-After header

The following request is being sent repeatedly in a loop by a client that is misconfigured:

http

GET /reports/mdn HTTP/1.1
Host: example.com

In this example, server-wide rate limiting is active when a client exceeds a set threshold of requests per minute. A 429 response is returned with a Retry-After header that indicates requests will be allowed for this client again after 3600 seconds (60 minutes):

http

HTTP/1.1 429 Too Many Requests
Content-Type: text/html
Retry-After: 3600
<html lang="en-US">
  <head>
    <title>Too Many Requests</title>
  </head>
  <body>
    <h1>Too Many Requests</h1>
    <p>You're doing that too often! Try again later.</p>
  </body>
</html>

Specifications

Specification
RFC 6585
# section-4

See also

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗