Bird
Raised Fist0

Given this error response from a REST API:

medium📝 Predict Output Q5 of Q15
Rest API - Error Handling

Given this error response from a REST API:

{"status": 429, "error": "Too Many Requests"}

What does the status code 429 indicate?

AThe client sent a bad request
BThe server is down
CThe client has sent too many requests in a given time
DThe requested resource was not found
Step-by-Step Solution
Solution:
  1. Step 1: Recall meaning of HTTP 429 status code

    429 means the client is being rate limited due to too many requests.
  2. Step 2: Match the error message to the code

    "Too Many Requests" matches the 429 status meaning.
  3. Final Answer:

    The client has sent too many requests in a given time -> Option C
  4. Quick Check:

    429 = Rate limiting error [OK]
Quick Trick: 429 means client sent too many requests quickly [OK]
Common Mistakes:
MISTAKES
  • Confusing 429 with 400 Bad Request
  • Thinking 429 means server error
  • Mixing 429 with 404 Not Found

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes