What is the HTTP status code for Unauthorized?
- 201
- 400
- 401
- 403
- 404
Explanation: The HTTP status code 401 means Unauthorized—referring to incorrect login credentials or not having valid authentication to a destination. The following table lists more HTTP status codes.
| HTTP Status Code |
Result | Common Reason for This Code |
|---|---|---|
| 200 | OK | Using GET or POST to exchange data with an API |
| 201 | Created | Creating resources using a REST API call |
| 400 | Bad Request | Request failed due to client-side issue |
| 401 | Unauthorized | Client not authenticated to access site or API call |
| 403 | Forbidden | Access not granted based on supplied credentials |
| 404 | Not Found | Page at HTTP URL location does not exist or is hidden |
Related exam: CCNPv8 ENCOR Chapter 28: Do I Know This Already? Quiz Answers
