HTTP

401 Unauthorized

The request requires user authentication. The response includes a WWW-Authenticate header indicating the authentication scheme.

When You See This Code

When accessing a protected resource without credentials or with expired tokens.

How to Fix

Include valid authentication credentials (API key, Bearer token, Basic auth) in the Authorization header.

Specification

View RFC / Specification →

Related Codes

Cross-Protocol Equivalents