HTTP Error Code 401
Authentication is missing, expired, or invalid.
Authentication is missing, expired, or invalid.
| Code | 401 |
| Product | HTTP |
| Company / origin | IETF / IANA · International standard |
| Category | Protocols & Standards |
| Platform / versions | HTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions |
| Severity | warning |
| Official source | RFC 9110: HTTP Semantics ↗ |
| Last verified | 2026-11-08 |
What does HTTP error 401 mean?
HTTP 401 means the server does not know who you are, or the credentials you sent are not acceptable. It is about identity, not permissions: a valid identity may still receive 403 for a resource it cannot access.
Common causes
- The Authorization header is missing or uses the wrong scheme.
- The access token has expired, was revoked, or was signed with the wrong key.
- The client clock is far enough off to invalidate a time-based signature.
How to fix it
- Step 1
Confirm that the request sends an Authorization header in the format the API expects.
- Step 2
Refresh the token or API key, then retry once with the new credential.
- Step 3
Check the client and server clocks, and inspect the WWW-Authenticate response header for the required scheme.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
403 | Forbidden | The server understood the request but refuses to authorize it. |
400 | Bad Request | The server cannot process the request because the syntax or parameters are invalid. |
404 | Not Found | The requested resource does not exist at this URL. |
405 | Method Not Allowed | The HTTP method is not allowed for this resource. |
408 | Request Timeout | The client did not send the full request within the server's timeout. |
Source & verification
This page was checked against RFC 9110: HTTP Semantics on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with IETF / IANA. Always confirm destructive or security-sensitive steps with the official documentation.