200-901 · Question #88
Which status code is used by a REST API to indicate that the submitted payload is incorrect?
The correct answer is A. 400. HTTP 400 Bad Request is returned when the server cannot process the request due to a client error, such as a malformed request body, invalid syntax, or incorrect payload. 403 Forbidden means the client lacks permission. 405 Method Not Allowed means the HTTP method is not…
Question
Which status code is used by a REST API to indicate that the submitted payload is incorrect?
Options
- A400
- B403
- C405
- D429
How the community answered
(60 responses)- A90% (54)
- B7% (4)
- C2% (1)
- D2% (1)
Explanation
HTTP 400 Bad Request is returned when the server cannot process the request due to a client error, such as a malformed request body, invalid syntax, or incorrect payload. 403 Forbidden means the client lacks permission. 405 Method Not Allowed means the HTTP method is not supported. 429 Too Many Requests indicates rate limiting.
Topics
Community Discussion
No community discussion yet for this question.