4xx Client Error
I know who you are, but you're not allowed to do this. You don't have permission for this action.
Use 403 when the request is understood but the client is not allowed to perform it, even with current authentication.
DELETE https://api.example.test/api/users/123
# Headers
Authorization: Bearer <user-token>403 Forbidden
# Headers
Content-Type: application/json
# Body
{
"error": "forbidden"
}User authenticated but lacks admin privileges for deletion
GET https://api.example.test/api/users/456/private-data403 Forbidden
# Headers
Content-Type: application/json
# Body
{
"error": "forbidden"
}User can't access another user's private information
You need to prove who you are before you can access this. Please log in or provide valid credentials.
The thing you're looking for doesn't exist here. It's like knocking on a door and nobody's home.
This content is blocked by law or legal restrictions in your area. It's like a book that's banned in your country.