401 Unauthorized
HTTP 401 Unauthorized: the IANA registry entry, its reference and class, what it means and what usually causes it.
Updated
HTTP 401 Unauthorized is a registered status code in the 4xx Client Error class.
IANA registration
| Field | Value |
|---|---|
| Code | 401 |
| Description, as registered | Unauthorized |
| Reference | RFC 9110, Section 15.5.2 |
| Class | 4xx Client Error |
Source: IANA Hypertext Transfer Protocol (HTTP) Status Code Registry, as downloaded on December 5, 2026. The registry changes over time; the linked page is the authority.
The 4xx class
The first digit of a status code gives its class. A 4xx (Client Error) code means the request contains bad syntax or cannot be fulfilled. A client that does not recognize a particular code can treat it as the x00 code of its class. The classes are defined in RFC 9110, Section 15.
What it means in practice
This section is written by Network Utility. It is not part of the IANA registry.
The request lacks valid authentication credentials. Despite the name "Unauthorized", it is about authentication: the server does not know who is asking. The response includes a WWW-Authenticate header describing how to authenticate.
What usually causes it. Typical causes are a missing Authorization header, a wrong user name or password, an expired or revoked token or session, and a proxy that strips the Authorization header before the request reaches the application.