401 Unauthorized

The HTTP status meaning the request has no valid credentials, so the caller must authenticate first.

In more detail

Despite its name, 401 is about authentication, not permission. It must carry a WWW-Authenticate header naming the scheme to use, such as Basic or Bearer. A caller with valid credentials but not enough permission gets 403 instead.

Example

The course's limited login answers wrong guesses with 401 until the budget runs out.

Related terms

Taught in

References

Certification courses