401
Unauthorized
Client Error
Description
Authentication is required and has failed or has not been provided
Common Usage
User needs to log in; requires WWW-Authenticate header
Example Response
How this status code appears in HTTP responses
HTTP Response Header
HTTP/1.1 401 UnauthorizedcURL Example
curl -I https://example.com
# Returns: HTTP/1.1 401 UnauthorizedClient Error Response
This is a client error response indicating the request contains bad syntax or cannot be fulfilled.
Related Client Error Codes
Other codes in the same category