Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.27 KB

errors.rst

File metadata and controls

58 lines (45 loc) · 1.27 KB

Errors

Errors will be communicated via appropriate HTTP status codes and an error response in the requested format. Special errors cases will be documented in the endpoint documentation.

Examples

Issues with the resource address will result in a 404 Not Found

{
    "Message": "User not found",
    "Errors": [
        {
            "Key": "User",
            "Code": "NotFound"
        }
    ]
}

Issues with request content will result in a 400 Bad Request

{
    "Message": "Validation Failed",
    "Errors": [
        {
            "Key": "Profile.Personal.Address.Line1",
            "Code": "MissingField"
        }
    ]
}

Special Error cases

When our system of record undergoes maintenance some API functionality will be unavailable. During these times a 503 Service Unavailable response will be returned. Endpoints that are not functional during maintenance periods will be documented.

The response body will contain the following error:

{
    "Message": "System of record is unavailable",
    "Errors": [
        {
            "Code": "SystemOfRecordUnavailable"
        }
    ]
}