# 401 Unauthorized

> HTTP 401 Unauthorized: the IANA registry entry, its reference and class, what it means and what usually causes it.

Source: https://networkutility.org/http-status/401/  
Section: HTTP status codes  
Updated: 2026-12-05

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](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2) |
| Class | 4xx Client Error |

Source: [IANA Hypertext Transfer Protocol (HTTP) Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml), 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](https://www.rfc-editor.org/rfc/rfc9110.html#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.
