Code : 200 OK
Condition : Missing entity.
Code : 404 NOT FOUND
Content:
{
"statusCode": 404,
"error": "Not Found",
"message": "Not Found"
}
Condition : User with role user
attempts to view the list of users.
Code : 401 UNAUTHORIZED
Content :
{
"statusCode": 401,
"error": "Unauthorized",
"message": "Invalid credentials",
"attributes": {
"error": "Invalid credentials"
}
}
Condition : User has attempted to login multiple times.
Code : 429 Too Many Requests
{
"statusCode": 429,
"error": "Too many requests",
"message": "Max login attempts reached, please try again in 2 hours",
}