HTTP · Unauthorized

HTTP Error Code 401

Authentication is missing, expired, or invalid.

warningLast verified 2026-11-08RFC 9110: HTTP Semantics
Quick answer

Authentication is missing, expired, or invalid.

Code401
ProductHTTP
Company / originIETF / IANA · International standard
CategoryProtocols & Standards
Platform / versionsHTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions
Severitywarning
Official sourceRFC 9110: HTTP Semantics ↗
Last verified2026-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

  1. Step 1

    Confirm that the request sends an Authorization header in the format the API expects.

  2. Step 2

    Refresh the token or API key, then retry once with the new credential.

  3. Step 3

    Check the client and server clocks, and inspect the WWW-Authenticate response header for the required scheme.

When to escalate

Before you escalate: If the same status persists after you have checked the request, the server logs, and the upstream service, contact the API or hosting provider with the full response headers, request ID, timestamp, and a minimal reproduction.

Related codes

CodeNameWhat it means
403ForbiddenThe server understood the request but refuses to authorize it.
400Bad RequestThe server cannot process the request because the syntax or parameters are invalid.
404Not FoundThe requested resource does not exist at this URL.
405Method Not AllowedThe HTTP method is not allowed for this resource.
408Request TimeoutThe 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.