403 Forbidden

The HTTP status meaning the server knows who the caller is but that identity is not allowed to do this.

In more detail

Retrying with the same credentials will not help; the caller needs a different grant, such as a token with the required scope. Use 401 instead when the problem is missing or invalid credentials.

Examples

In the APIs course: The course service answers 403 when a token lacks tasks:write.
Kubernetes: a Forbidden answer comes either from RBAC (the message names user, verb and resource) or from admission such as Pod Security (the message names the violated policy).
In a Kubernetes audit log, a burst of 403 responses for one token is someone exploring what a stolen credential can do.

Related terms

Taught in

References