Takeaways
- The server understood the request but refuses to authorize it.
- A server that wishes to make public why the request has been forbidden can describe that reason in the response payload (if any).
- If authentication credentials were provided in the request, the server considers them insufficient to grant access.
- The client should not automatically repeat the request with the same credentials.
- The client may repeat the request with new or different credentials. However, a request might be forbidden for reasons unrelated to the credentials.
- An origin server that wishes to "hide" the current existence of a forbidden target resource may instead respond with a status code of
404 Not Found
.
Information
The 403 Forbidden
response status code indicates that the server understands the request but refuses to authorize it.
This status is similar to 401
, but for the 403 Forbidden
status code, re-authenticating makes no difference. The access is tied to the application logic, such as insufficient rights to a resource.