401
Stopped at the gate.
Unauthorized. The guard can't verify your ticket. Maybe it's one for last week's game. Or you tried to use a fale one. The server can't authenticate your request, so you never get in.
Start debugging 401 error
-
Read the response.
Check the response body and the
WWW-Authenticateheader. -
Is the ticket shown?
Confirm the credential is being sent. Check with
curl -vfor empty environment variables or dropped headers. -
Is it the right ticket?
Check the header name, authentication scheme (
BearervsBasic), and stray spaces. -
Is it still valid?
Look for expired tokens, revoked keys, or credentials for the wrong environment.