...
ERROR CODE for ALL the API’s (negative scenarios) - Work in progress (will be updated by end of SPRINT 197)
Sample Error Responses:
API TYPE | ERROR | |
---|
POST | 422: User account is not active | Code Block |
---|
{
"code": 422,
"errorMessage": "User account is not active",
"errorCode": "USER_ACCOUNT_INACTIVE"
} |
|
422: User does not belong to the required patron group | Code Block |
---|
{
"code": 422,
"errorMessage": "User does not belong to the required patron group",
"errorCode": "INVALID_PATRON_GROUP"
} |
|
422: User already exists | Code Block |
---|
{
"code": 422,
"errorMessage": "User already exists",
"errorCode": "USER_ALREADY_EXIST"
} |
|
PUT | 404: user does not exist | Code Block |
---|
{
"code": 404,
"errorMessage": "User does not exist",
"errorCode": "USER_NOT_FOUND"
} |
|
400: User already exist with email provided in payload | Code Block |
---|
{
"code": 400,
"errorMessage": "User already exist with email provided in payload",
"errorCode": "EMAIL_ALREADY_EXIST"
} |
|