Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 51
A 401 HTTP response code is returned when calling a REST API. What is the error state identified by this response code?
Answer options
- A. The server cannot process the request as it has detected an issue in the request syntax or body.
- B. The request has not been accepted because it requires authentication.
- C. The sever accepted the request but the client is not authorized for this content.
- D. The server cannot find the requested resource because the path specified is incorrect.
Correct answer: B
Explanation
A 401 HTTP response code means that the request requires user authentication and has not been fulfilled because the user has not provided valid authentication credentials. Options A, C, and D pertain to different error states, such as syntax errors, authorization issues after the request is accepted, and resource not found errors, respectively.