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

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.