What HTTP 401 means
RFC 9110 §15.5.2. The server requires authentication and either none was provided or the credentials are invalid. Response must include WWW-Authenticate header. Often confused with 403 — 401 means 'who are you?', 403 means 'I know who you are, but you can't do this'.
Typical causes
- Missing API key
- Invalid token
- Expired JWT
- Wrong username/password
- Missing Authorization header