Errors are always returned in JSON format. Each error includes a code and a message, indicating the general reason for the error, as well as a type to categorize the issue. Additionally, a details array provides more specific information about the error condition. For example:
Copy
Ask AI
{ "code": 2001, "details": [ { "message": "check_in_date is not less than check_out_date. Please check reservation dates." } ], "message": "Unable to process your request. Missing or invalid request parameters.", "request_id": "9a15bee6-43c7-40b1-8b52-dd28daf9134b", "type": "VALIDATION"}