NOT_AUTHENTICATED: returned when user is not authorized to access API because it requires login
FORBIDDEN: returned when user do not have permission to perform operation
ACCESS_DENIED: returned when client did not provided any authentication information. U
sually means misconfiguration on the client. I'm not sure about this error code but is seems to be mixture of missconfiguration and runtime errors
Verification
Sample app should return extra value now:
{
"errors":[
{
"message":"User is not authorized. Must have one of the following roles: [admin]",
"code": "FORBIDDEN"
}
]
}
Motivation
Return error codes for all programatic errors
Possible error codes:
NOT_AUTHENTICATED
: returned when user is not authorized to access API because it requires loginFORBIDDEN
: returned when user do not have permission to perform operationACCESS_DENIED
: returned when client did not provided any authentication information. U sually means misconfiguration on the client. I'm not sure about this error code but is seems to be mixture of missconfiguration and runtime errorsVerification
Sample app should return extra value now: