Missing or invalid authentication credentials.

Section: Client and server errors

401 Unauthorized

http
http
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer
Explanation

401 means the client needs valid authentication. It is not the same as lacking permission.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Client and server errors
400 Bad Request
Malformed request syntax or invalid shape.
OpenIn sheethttpsame section
403 Forbidden
Authenticated but not allowed to perform the action.
OpenIn sheethttpsame section
404 Not Found
The resource does not exist.
OpenIn sheethttpsame section
409 Conflict
Request conflicts with current resource state.
OpenIn sheethttpsame section
412 Precondition Failed
Optimistic concurrency guard failed.
OpenIn sheethttpsame section
422 Unprocessable Content
Well-formed request but semantic validation failed.
OpenIn sheethttpsame section