Clearer errors for a slow source and for a room that is too small
- A hotel search that gets no answer in time now says so:
GET /v1/hotelsandGET /v1/suggestanswer504 upstream_timeout, as/v1/shopalready did. Until now they answered500with “internal error”. Not billed, and a retry a few seconds later often succeeds. GET /v1/hotelfalls back to the stored record when the chain does not answer in time, instead of answering500.- Marriott, more guests than a room takes: a shop for an occupancy the hotel does not sell (four adults in one room, for example) answers
400 invalid_requestwith a sentence that says so. It used to answer503 source_unavailable, which invited a retry that could not work. Not billed. In a comp set that hotel is one row withstatus: "error", and the other hotels are still answered.