Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 548
Which status code is used by a REST API to indicate that the submitted payload is incorrect?
Answer options
- A. 400
- B. 403
- C. 405
- D. 429
Correct answer: A
Explanation
The correct answer is 400, which indicates a Bad Request due to invalid input from the client. The other codes do not indicate issues with the payload: 403 signifies Forbidden access, 405 means Method Not Allowed, and 429 indicates Too Many Requests.