Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 460
What is the reason for an HTTP 404 code returned from a REST API request?
Answer options
- A. The requested URL exists, but the HTTP method is not applicable.
- B. The requested resource is not found.
- C. The request was missing or had an invalid authentication token.
- D. The request was successful, but nothing is in the response body.
Correct answer: B
Explanation
The correct answer is B because an HTTP 404 code specifically means that the requested resource could not be found on the server. Option A is incorrect as it refers to the HTTP method, while C addresses authentication issues, and D implies a successful response but with no data, none of which align with the meaning of a 404 error.