Skip to main content

Errors

When a request is not valid or is not successfully processed, the API returns a list of errors which occurred together with and HTTP error code.

Response parameters

NameTypeMandatoryDescription
error_codestringYThe HTTP status code. See HTTP codes below.
errorsarrayYAn array of error objects. See Error object

HTTP status codes

HTTP CodeDescription
200Success
201Created
400Bad request
403Forbidden (wrong authentication, invalid source ip or forbidden resource)
404Not found
500System error

Example response

{
"error_code": 400,
"errors": [
{
"class": "error",
"property": "source",
"message": "Source not found",
"code": 20006,
"data": "60"
},
{
"class": "error",
"property": "expirationDate",
"message": "Invalid end_date parameter",
"code": 20004,
"data": "string"
}
]
}