HTTP Status Code 401
The status code 401, also known as "Unauthorized," indicates that you don't have the necessary permission to access a specific resource. This happens when you try to access a webpage or file that requires authentication, but you either haven't provided credentials, or the credentials you provided are incorrect or expired.
Here's a breakdown of what a 401 error means:
- Client-side error: The issue lies with the way your request was formatted or the information you included.
- Missing or incorrect credentials: You likely didn't enter a username and password, or the ones you entered were wrong.
- Expired credentials: Your session may have timed out, or your authentication token might no longer be valid.
The way a 401 error displays can vary depending on the website. You might see a generic error message or a login prompt.
Other 4xx Status Codes
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Payload Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I'm a teapot
- 421 Misdirected Request
- 422 Unprocessable Entity
- 423 Locked
- 424 Failed Dependency
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons