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
| Name | Type | Mandatory | Description |
|---|---|---|---|
| error_code | string | Y | The HTTP status code. See HTTP codes below. |
| errors | array | Y | An array of error objects. See Error object |
HTTP status codes
| HTTP Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad request |
| 403 | Forbidden (wrong authentication, invalid source ip or forbidden resource) |
| 404 | Not found |
| 500 | System 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"
}
]
}