hotel-api-Error-Codes
Hotel API 1.7
Error Codes
The following table lists the error codes, corresponding error messages, and descriptions that may be returned by the Hotel API.
| Sr. No. | Error Code | Error Message | Description |
|---|---|---|---|
| 1 | Invalid_Request | Invalid request. | The API request contains invalid or missing information. |
| 2 | Hotel_List_Empty | At least one hotel is mandatory. | At least one hotel ID must be provided. |
| 3 | Hotel_Limit_Exceeded | Hotel IDs cannot exceed 100. | The request contains more than 100 hotel IDs. |
| 4 | Invalid_CheckIn_Date | Invalid check-in date format. Expected yyyy-MM-dd. | Check-in date must follow the expected date format. |
| 5 | Invalid_CheckOut_Date | Invalid check-out date format. Expected yyyy-MM-dd. | Check-out date must follow the expected date format. |
| 6 | CheckIn_Date_In_Past | Check-in date cannot be in the past. | The requested check-in date is earlier than the current date. |
| 7 | Invalid_Stay_Dates | Check-out date must be after check-in date. | Check-out date must be later than check-in date. |
| 8 | Max_Stay_Exceeded | Stay cannot exceed 40 nights. | The requested stay exceeds 40 nights. |
| 9 | Room_Details_Empty | Room details cannot be empty. | Room occupancy details are missing. |
| 10 | Invalid_Room_Details | Invalid room information. | The provided room or occupancy information is invalid. |
| 11 | Nationality_Required | Nationality cannot be empty. | Nationality information is mandatory. |
| 12 | Invalid_Nationality | Selected nationality is not available. | The provided nationality is not supported. |
| 13 | Ratings_Required | Ratings must be provided. | Hotel rating information is mandatory. |
| 14 | Invalid_Ratings | Selected rating(s) is not available. | One or more selected hotel ratings are invalid or unavailable. |
| 15 | No_Results_Found | No hotels found for the requested search. | No hotels match the requested search criteria. |
| 16 | Supplier_Timeout | Supplier request timed out. | The supplier did not respond within the configured timeout period. |
| 17 | Authentication_Failed | Authentication failed. | Authentication credentials are invalid or authentication could not be completed. |
| 18 | Internal_Server_Error | An unexpected error occurred. | An unexpected internal system error occurred. |
| 19 | Session_Timeout | Session Timeout! | The search session has expired. |
| 20 | Hotel_Not_Associated_With_Session | The Hotel Id is not associated with this session! | The requested hotel ID does not belong to the original search session. |
| 21 | CheckIn_Date_Mismatch | The check-in date does not match the search request date! | The check-in date differs from the original search request. |
| 22 | CheckOut_Date_Mismatch | The check-out date does not match the search request date! | The check-out date differs from the original search request. |
| 23 | User_Not_Available | User is not available. | The user associated with the request could not be identified or is unavailable. |
| 24 | Request_Token_Mismatch | The request token is not associated with this session! | The request token does not belong to the current search session. |
| 25 | Room_Not_Available | Room is not available to book. | The selected room is no longer available for booking. |
| 26 | Adult_Count_Mismatch | Adult count does not match the search request. | The adult count differs from the original search request. |
| 27 | Child_Count_Mismatch | Child count does not match the search request. | The child count differs from the original search request. |
| 28 | Room_Availability_Not_Executed | Room availability has not been executed. | Room availability validation has not been completed. |
| 29 | Invalid_Request_Token | Incorrect request token. | The provided request token is invalid or incorrect. |
| 30 | Final_Selling_Price_Mismatch | Final selling price is not matching with search response. | The final selling price differs from the original search response price. |
| 31 | BOOKING_FAILED | Unable to Book | The booking operation could not be completed successfully. |