Peak problem types
Home / Shared / rate_limited

Too many requests.

Code
rate_limited
Type
https://problems.peakintelligence.ch/rate-limited
Status
429 Too Many Requests
Audience
user. The person using the client can act on it. A client may show detail to them; it is worded in the request's language.
Service
Shared: every Peak service answers with it.

Description

The caller sent more requests than the service allows in a period. The Retry-After header says how long to wait, in seconds or as a date; send nothing to that endpoint before then. A person may be told to wait; retrying at once only extends the wait.

Example

HTTP/1.1 429 Too Many Requests
Content-Type: application/problem+json

{
  "type": "https://problems.peakintelligence.ch/rate-limited",
  "title": "Too many requests.",
  "status": 429,
  "code": "rate_limited",
  "audience": "user",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}

A real answer also carries detail when there is something to say about this occurrence, and may carry errors or members of the type's own, which the service's OpenAPI document describes. When to ask again is the Retry-After header.