{ "success" : false , "error" : { "code" : " SLOT_TAKEN " , "message" : " That slot was just taken. Pick another time. " } }
Branch on error.code — it is stable. error.message is English and safe to display, but your own localised copy will read better.
Status Code Cause What to do 404 RESOURCE_NOT_FOUNDUnknown slug, room, hold or token Check the identifier 404 SITE_NOT_LIVEThe studio unpublished its site Hide booking; show phone / WhatsApp 403 STUDIO_NOT_VERIFIEDOwnership not confirmed yet Studio-side; nothing a guest can do 409 ROOM_NOT_BOOKABLEOnline booking off, or room unpriced/inactive Remove it from your room list
Status Code Cause What to do 400 VALIDATION_ERRORMalformed field, bad duration, idempotency key reused with a different body Fix the payload; re-derive durations from the room 400 CAPTCHA_FAILEDCaptcha token missing, expired or already used Reset the widget, get a fresh token 400 PAYMENT_MODE_DENIEDMode not in room.paymentModes Offer only the modes the room allows 400 GROUP_SIZE_INVALIDgroupSizeId not offered by the room, or partySize outside 1…capacityOffer only the room’s group sizes; clamp the people counter to capacity
Status Code Cause What to do 409 OUTSIDE_HOURSThe room is closed then Refetch availability — your span maths drifted 409 OUTSIDE_BOOKING_WINDOWBreaks minNoticeMin or maxAdvanceDays Clamp the calendar to the window 409 SLOT_TAKENSomeone booked it first Refetch, keep the guest’s details, offer another time 410 HOLD_EXPIRED12 minutes passed Restart from the hold with a new idempotency key 409 HOLD_NOT_VERIFIEDConfirming before verifying Send the guest back to the code step 409 HOLD_ALREADY_CONFIRMEDDouble submit Show the existing booking 409 CANCEL_TOO_LATEInside the cancellation window Show the studio’s phone 409 INVALID_STATEThe action makes no sense now Re-read the booking
Status Code Cause What to do 400 CODE_INVALIDWrong or expired code Let them retype; show attempts left 429 TOO_MANY_ATTEMPTS5 wrong codes The hold is burnt — restart 429 RATE_LIMIT_EXCEEDEDToo many requests Back off, see below
Status Code Cause What to do 409 PAYMENTS_UNAVAILABLEStripe not configured Offer on_site 503 SMS_UNAVAILABLESMS provider down Offer channel: "email" 500 INTERNAL_ERROROur fault Retry once; include X-Request-ID if you report it
Scope Limit Reads (GET /public/*) 120 req/min per IP Writes (holds, verify, resend, confirm, cancel) 15 req/min per IP Holds per contact 5 per hour Holds per IP 20 per hour Code resends 3 per hold, ≥ 60 s apart Verification attempts 5 per hold
Exceeding any of them returns 429 RATE_LIMIT_EXCEEDED.
Proxying through your server
Limits are keyed by client IP. If every request reaches us from one server address, your whole site shares a single bucket and a busy evening will lock everyone out. Forward the visitor’s address:
X-Forwarded-For : 203.0.113.42
GETs are safe to retry.
POST /holds is safe to retry with the same idempotencyKey — you get the same hold back, no second SMS.
verify, confirm and cancel are not idempotent. On a network timeout, re-read state (GET /holds/{id} is not public, so use the manage endpoint once a booking exists) before firing again.
Back off exponentially on 429 and 5xx. Never retry a 4xx other than 429 without changing the request.