Responses

Success Responses

Code : 200 OK

Error Responses

Not found

Condition : Missing entity.

Code : 404 NOT FOUND

Content:

{
    "statusCode": 404,
    "error": "Not Found",
    "message": "Not Found"
}

Unauthorized

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"
    }
}

Too many requests

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",
}

Back to X2-SERIES API Home