nerdexam
Cisco

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…

Understanding and Using APIs

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)
  • A
    90% (54)
  • B
    7% (4)
  • C
    2% (1)
  • D
    2% (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

#REST API#HTTP Status Codes#API Error Handling#Client-Side Errors

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice