Skip to content

Errors and limits

A 200 response always carries a status. These are the seven possible values and their HTTP code:

status HTTP Meaning
ok 200 Quoted successfully.
no_availability 200 Checked, and no channel has a rate. Not an error.
hotel_not_found 422 We can’t tell which hotel you mean; hotel comes back null.
not_quotable 422 We know the hotel, but no source can quote it yet (its mapping is pending review). Retrying doesn’t change this.
not_supported 422 The hotel is fine; this request isn’t backed by measured evidence (today, currency: only USD, EUR and MXN). Unlike not_quotable, you can fix this by changing the parameter.
upstream_error 502 An external channel failed. Never disguised as an empty list.
overloaded 503 Our own queue rejected the call before asking anyone for anything. Nothing is charged.
Ventana de terminal
curl "https://api.rateshooter.com/v1/quotes?checkin=2026-12-11&checkout=2026-12-10&adults=2&hotel_id=2008" \
-H "Authorization: Bearer <your_api_key>"
400 — checkout before checkin
{
"status": "bad_request",
"error": "checkout must be after checkin"
}

Missing hotel identification (neither hotel_id, nor hotel_ref, nor name):

400 — missing hotel identification
{
"status": "bad_request",
"error": "Each hotel requires hotel_id, hotel_ref or name"
}
401 — no Authorization
{
"status": "unauthorized",
"error": "Missing Authorization header. Use: Authorization: Bearer <api_key>"
}
401 — invalid API key
{
"status": "unauthorized",
"error": "Invalid API key"
}
reason Meaning
rooms_insufficient The requested rooms aren’t enough for this party.
rooms_exceed_adults More rooms were requested than adults.
party_not_quotable No number of rooms fits.
422 — rooms_insufficient
{
"status": "not_quotable",
"reason": "rooms_insufficient",
"min_rooms": 3,
"max_rooms": 14,
"message": "Este grupo necesita al menos 3 habitaciones"
}

min_rooms and max_rooms are always present in this 422, whatever the reason — so you can show the user the valid range without guessing.

rate_limited is per second; quota_exceeded is per month. Both return 429, but only rate_limited carries Retry-After.

429 — rate_limited
{
"status": "rate_limited",
"error": "Rate limit exceeded (10/s)"
}

Taken from the code, not captured in production.

429 — quota_exceeded
{
"status": "quota_exceeded",
"error": "Monthly quota exhausted (98/100)"
}

Every response carries these headers, so you can track your budget without guessing:

Header What it reports
ratelimit-limit Your per-second limit, per your plan.
ratelimit-remaining What’s left of the burst: an accumulated capacity, not the per-second limit — which is why it can be greater than ratelimit-limit.
ratelimit-reset Seconds until the burst refills completely, at the pace of your per-second limit.
retry-after Only on 429 rate_limited: seconds to wait before retrying.

Real example, right after receiving a 429 rate_limited (same capture as above): ratelimit-limit: 10, ratelimit-remaining: 0, ratelimit-reset: 12, retry-after: 1. The per-second limit and the burst size depend on your plan — don’t assume they’re the same values across every account.

503 — our queue, not an external channel

Section titled “503 — our queue, not an external channel”

Taken from the code, not captured in production.

503 — overloaded
{
"status": "overloaded",
"hotel": {
"resolved_name": "Grand Oasis Cancun",
"hotel_id": 2008
},
"offers": [],
"meta": {
"offers_count": 0,
"billable": false
},
"stay": {
"checkin": "2026-12-10",
"checkout": "2026-12-11",
"nights": 1,
"adults": 2,
"rooms": 1,
"children": [],
"currency": "USD"
}
}

Retry-After: 5 is sent in the headers. Nothing is charged: X-HotelQuotes-Charged comes back 0. See what gets charged and best practices for how to retry.