The API attempts to use codes to indicate any errors that occur while processing requests. These error responses provide information on the underlying fault that can be used for debugging the error.Under the standard HTTP 400 status code the following errors can occur:
Error Code | Description |
---|---|
1001 | The received request is empty |
1002 | The date range of the request is not valid |
1003 | The date range of the request is too large |
1004 | The received request is partially empty |
1005 | A mandatory field is missing from the request |
1006 | The value of a field in the request is not valid |
1007 | The requested object was not found |
1008 | The requested object was not deleted |
1009 | The server cannot be reached |
1010 | No channels were found |
1011 | No channels to update were found |
1012 | No contracts for channels were found |
1013 | Channel contracts do not share the same price list |
1014 | There is no reserved room and an associated checked-in reservation for the criteria set |
1015 | The requested object was not created |
9999 | Domain was not found |
Example
<?xml version="1.0" ?> <error> <code>1001</code> <description>Empty request.</description> </error>
{ "code":"1001", "description":"Empty request." }