Errors
The Connect API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx
range indicate success, codes in the 4xx
range indicate an error that failed given the information provided (e.g., a required parameter was omitted, user's credentials are invalid, etc.), and codes in the 5xx
range indicate an error with the Connect API's servers (these are rare).
In addition to returning an appropriate HTTP code the body will also include a JSON formatted error object that provides more details about the specifics of the error. The error object will return the error as an array to indicate multiple errors (where present).
Attributes | |
---|---|
| a unique identifier for this particular occurrence of the problem. |
| an application-specific error code, expressed as a string value. |
| a short, human-readable summary of the problem. |
| a human-readable explanation specific to this occurrence of the problem. |
| an object containing references to the source of the error, optionally including any of the following members: |
| |
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"type": "list",
"correlationId": "bd1183d9-c9d8-11e7-909a-6789bfc80ac5",
"data": [
{
"type": "error",
"code": "parameter-not-supplied",
"title": "Required parameter not supplied",
"detail": "Institution ID parameter is required.",
"source": {
"pointer": "connection/institution/id",
"parameter": "id"
}
}
]
}
Updated over 2 years ago