401
⚠️ Client Error RFC 9110, Section 15.5.2

Unauthorized

The request requires user authentication. The client must authenticate itself to get the requested response.

Common Use

Not authenticated. Used when the client needs to log in or provide valid credentials (API keys, tokens, session cookies).

API Endpoint

https://codes.uncodigo.com/http/401

Example with curl

curl -i https://codes.uncodigo.com/http/401

Try It

GET /http/401
Click "Send Request" to see the response...

Example

Request

GET /api/protected HTTP/1.1

Response

HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer

Related Headers

WWW-Authenticate

Authentication scheme required

WWW-Authenticate: Bearer realm="api"