> For the complete documentation index, see [llms.txt](https://docs.bookinglayer.com/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bookinglayer.com/api/errors-and-status-codes.md).

# Errors and Status Codes

Bookinglayer uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicates success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, validation errors, etc.). Codes in the 5xx range indicates an error with the Bookinglayer servers and you should retry.\
\
Each error response MUST include errors Object with error details.

{% code fullWidth="false" %}

```json
{
    "data": {
        "message": "The given data was invalid.",
        "errors": {
            "starts_at": [
                "starts at is not a valid date"
            ]
        }
    }
}
```

{% endcode %}
