350-901 · Question #62
A developer has completed the implementation of a REST API, but when it is executed, it returns a 401 error message. What must be done on the API to resolve the issue?
The correct answer is B. Configure new valid credentials. The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to…
Question
Exhibits
Options
- AAccess permission to the resource must be granted, before the request.
- BConfigure new valid credentials.
- CThe requested API endpoint does not exist, and the request URL must be changed.
- DAdditional permission must be granted before the request can be submitted.
How the community answered
(18 responses)- B94% (17)
- D6% (1)
Explanation
The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to authorize correctly. This status is similar to 403, but in this case, authentication is possible. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
Topics
Community Discussion
No community discussion yet for this question.

