Errors

In this guide, you can see what types of errors you can expect to get while working with the HotelHero API. Let's look at some status codes you might encounter.

You can tell if your request was successful by checking the status code when receiving an API response. If a response comes back unsuccessful, you can use the error type and error message to figure out what has gone wrong and do some rudimentary debugging (before contacting support).


Status codes

Here is a list of the different categories of status codes returned by the HotelHero API. Use these to understand if a request was successful.

  • Name
    2xx
    Type
    Description

    A 2xx status code indicates a successful response.

  • Name
    4xx
    Type
    Description

    A 4xx status code indicates a client-side error. This typically suggests that there might be an issue with your request. Refer to the error type and accompanying message for insights into the specific problem.

  • Name
    5xx
    Type
    Description

    A 5xx status code indicates a server error. If you encounter a 5xx status code, please contact support.