API error handling essentials

  • Rate limiting (429): too many requests — check Retry-After header, then back off
  • Exponential backoff: 1s → 2s → 4s → 8s with random jitter to prevent thundering herd
  • Idempotent: safe to retry — same result on multiple calls (GET, PUT, DELETE; POST with Idempotency-Key)
  • Circuit breaker: open after failure threshold → fast-fail → half-open test → close on success
  • Classify errors before retrying: transient (retry) vs. permanent/business logic (fix first)

Question 0 of 5

A client sends 100 API requests per second but the limit is 60. The API responds with HTTP 429. What is the correct term and what should the client do?