# What does the HTTP 401 status code mean?

> The HTTP 401 Unauthorized status code means a request was not applied because it lacks valid authentication credentials for the target resource.

*A server that sends a 401 must also send a WWW-Authenticate header with at least one challenge, under RFC 9110.*

- Type: Explainer
- Section: Tech
- By: Tech Desk
- Published: 2026-11-12T11:39:11-05:00
- Updated: 2026-11-12T11:39:11-05:00
- Checked: 2026-11-12T11:38:38-05:00
- URL: https://factsdesk.com/tech/what-does-the-http-401-status-code-mean/

## Key facts

- Under RFC 9110, the HTTP 401 (Unauthorized) status code means the request was not applied because it lacks valid authentication credentials for the target resource. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc9110.html). Confirmed 2026-11-12T11:38:38-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-401-status-code-mean/#under-rfc-9110-the-http-401-unauthorized-status-code-means
- A server that sends a 401 response must include a WWW-Authenticate header field containing at least one challenge that applies to the target resource. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc9110.html). Confirmed 2026-11-12T11:38:38-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-401-status-code-mean/#a-server-that-sends-a-401-response-must-include-a-www
- If the request already included authentication credentials, a 401 response means authorization has been refused for those credentials. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc9110.html). Confirmed 2026-11-12T11:38:38-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-401-status-code-mean/#if-the-request-already-included-authentication-credentials-a
- A server that receives valid credentials that are not adequate to gain access ought to respond with 403 (Forbidden), according to RFC 9110. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc9110.html). Confirmed 2026-11-12T11:38:38-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-401-status-code-mean/#a-server-that-receives-valid-credentials-that-are-not
- The IANA HTTP Status Code Registry lists 401 with the description Unauthorized and points to RFC 9110, Section 15.5.2, as its definition. Source: [Internet Assigned Numbers Authority (IANA)](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml). Confirmed 2026-11-12T11:38:38-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-401-status-code-mean/#the-iana-http-status-code-registry-lists-401-with-the

The HTTP 401 status code means the server did not apply a request because the request lacks valid authentication credentials for the resource it asked for, according to [RFC 9110, Section 15.5.2](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2), the IETF document titled HTTP Semantics. In the words of the standard, "The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource."

## When a server sends a 401

[Section 11.4 of RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#section-11.4) says an origin server should send a 401 when a request for a protected resource omits credentials, contains invalid credentials such as a bad password, or contains only partial credentials, as happens when an authentication scheme needs more than one round trip. A 401 belongs to the 4xx class, which [RFC 9110, Section 15.5](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5) describes as the class of status codes indicating that the client seems to have erred.

## What a 401 response must include

A server that generates a 401 response must send a WWW-Authenticate header field containing at least one challenge that applies to the target resource, under [RFC 9110, Section 15.5.2](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2). [Section 11.3](https://www.rfc-editor.org/rfc/rfc9110.html#section-11.3) explains that an origin server uses a 401 response to challenge the authorization of a user agent. A user agent then authenticates by sending an Authorization header field with its credentials, as described in [Section 11.6.2](https://www.rfc-editor.org/rfc/rfc9110.html#section-11.6.2).

## What a 401 means when credentials were already sent

If the request already included authentication credentials, the 401 response means authorization has been refused for those credentials, according to [RFC 9110, Section 15.5.2](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2). The user agent may repeat the request with a new or replaced Authorization header field. When the new 401 carries the same challenge as the last one and the user agent has already tried to authenticate at least once, the [standard](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2) says the user agent should show the user the content of the response, because it usually contains diagnostic information.

## How 401 differs from 403 and 407

A 403 (Forbidden) means the server understood the request but refuses to fulfill it, and if credentials were sent, the server considers them insufficient to grant access, under [RFC 9110, Section 15.5.4](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.4). [Section 11.4](https://www.rfc-editor.org/rfc/rfc9110.html#section-11.4) says a server that receives valid credentials that are not adequate to gain access ought to respond with 403. A 407 (Proxy Authentication Required) is similar to 401, but [Section 15.5.8](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.8) says it means the client must authenticate itself to use a proxy, and the proxy must send a Proxy-Authenticate header field.

| Code | Name | Meaning under RFC 9110 |
| --- | --- | --- |
| 401 | Unauthorized | Valid authentication credentials are missing |
| 403 | Forbidden | The request is understood but refused |
| 407 | Proxy Authentication Required | The client must authenticate to a proxy |

## Where the 401 code is defined

[RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html), titled HTTP Semantics, was published in June 2022 as a product of the Internet Engineering Task Force and an Internet Standards Track document, numbered STD 97, and it obsoletes earlier specifications including RFC 7231 and RFC 7235. The [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml), maintained by IANA, records 401 with the description Unauthorized and cites RFC 9110, Section 15.5.2, as its reference.

## Sources

1. [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html), RFC Editor (Internet Engineering Task Force), 2022-06 (primary source)
2. [Hypertext Transfer Protocol (HTTP) Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml), Internet Assigned Numbers Authority (IANA), 2025-09-15 (primary source)

## Asked next

- [What does the HTTP 301 status code mean?](https://factsdesk.com/tech/what-does-the-http-301-status-code-mean/): HTTP 301 means Moved Permanently: the resource has a new permanent URI, and future references to it ought to use the new address, under RFC 9110.
- [What does the HTTP 400 status code mean?](https://factsdesk.com/tech/what-does-the-http-400-status-code-mean/): HTTP 400 Bad Request means the server cannot or will not process a request because of something it perceives to be a client error, under RFC 9110.
- [What does the HTTP 403 status code mean?](https://factsdesk.com/tech/what-does-the-http-403-status-code-mean/): HTTP 403 Forbidden means the server understood the request but refuses to fulfill it, as defined in RFC 9110, the HTTP Semantics standard.
- [What does the HTTP 404 status code mean?](https://factsdesk.com/tech/what-does-the-http-404-status-code-mean/): HTTP 404 Not Found means the server did not find a current representation for the target resource or is not willing to disclose that one exists.
- [What does the HTTP 500 status code mean?](https://factsdesk.com/tech/what-does-the-http-500-status-code-mean/): HTTP 500 Internal Server Error means the server encountered an unexpected condition that prevented it from fulfilling the request, under RFC 9110.
- [What does the HTTP 429 status code mean?](https://factsdesk.com/tech/what-does-the-http-429-status-code-mean/): HTTP 429 Too Many Requests means the user has sent too many requests in a given amount of time, which RFC 6585 calls rate limiting.
