What Is HTTP 401 Unauthorized?
HTTP 401 Unauthorized explained, and what it means when you see it in CI/CD and deployments.
HTTP 401 means the request lacks valid authentication credentials.
What it means
Despite the name, 401 is about authentication (who you are), not authorization. It means no credentials, expired credentials, or a bad token.
When you see it in CI/CD
A 401 in CI almost always means a missing or wrong secret/token. Check the secret is set, not empty, and has not expired. Retrying will not fix a bad credential.
Key takeaways
- 401 means authentication failed.
- Usually a missing/wrong token in CI.
- Retrying will not fix it.
Related guides
What Is HTTP 403 Forbidden?HTTP 403 Forbidden means you are authenticated but not allowed. Learn how it shows up in CI.
What Is a Secret in CI?A CI secret is a sensitive value - token, key, password - stored encrypted and injected into jobs at runtime.…
What Is a Bearer Token? Whoever Holds It Gets InA bearer token grants access to anyone who presents it, sent in the Authorization header. Learn what bearer t…