Bird
0
0

Which HTTP status code is correctly used to indicate a 400 Bad Request in a REST API response?

easy📝 Syntax Q3 of 15
Rest API - HTTP Status Codes

Which HTTP status code is correctly used to indicate a 400 Bad Request in a REST API response?

A200
B400
C404
D500
Step-by-Step Solution
Solution:
  1. Step 1: Recall HTTP status codes

    400 is the official code for Bad Request, meaning client sent invalid data.
  2. Step 2: Verify other codes

    200 means OK, 404 means Not Found, 500 means server error.
  3. Final Answer:

    400 -> Option B
  4. Quick Check:

    400 = Bad Request status code [OK]
Quick Trick: 400 is the exact code for Bad Request [OK]
Common Mistakes:
MISTAKES
  • Using 200 for errors
  • Confusing 400 with 404 or 500
  • Mixing client and server error codes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes