Errors
OCTO will respond to every request with either a 200 OK
if everything went ok or 400 Bad Request
if it didn't. In the case of the 400 Bad Request
the response body will look like this:
You will always receive error
and errorMessage
which is defined as:
Field | Description |
---|---|
| The error code. A table of possible error codes is shown below. |
| A human-readable error message will be translated depending on the language provided by the |
Depending on the error code we also may pass additional fields which can make it easier to understand what's wrong with your request. In the example above we provide productId
and pass the value that was sent in the request, indicating that the productId of 123
is not valid.
List of Error Codes
Below is a list of the error codes and a description of what each means. Further down this page we also provide an example request body for all the error codes that provide additional attributes.
Code | Description |
---|---|
| Missing or invalid |
| Missing or invalid |
| Missing or invalid |
| Missing or invalid |
| Missing or invalid booking UUID, or if you're confirming the booking the booking may have expired already. |
| If your request body is not formatted correctly, you have missing required fields or any of the data types are incorrect. |
| If your request body is technically correct but cannot be processed for other reasons. e.g. you tried to cancel a booking after the cancellation cutoff had elapsed. |
| Hopefully this never happens, but if the backend server is down or there's a network outage. |
| You didn't send the API Key in the |
| You sent an API Key that was invalid or has been revoked by the backend system. Or you're trying to access an endpoint/resource that you do not have access to. |
As explained above it's also possible for specific error codes to have additional attributes that help you diagnose what is wrong with your request. Below are all the specific errors that contain these attributes:
INVALID_PRODUCT_ID
INVALID_OPTION_ID
INVALID_UNIT_ID
INVALID_AVAILABILIY_ID
Last updated