Error Codes

Reference for all HTTP status codes and error responses returned by the BOOQR API.

HTTP Status Codes

CodeMeaningDescription
200OKRequest succeeded
201CreatedResource was created successfully
400Bad RequestInvalid parameters or request body
401UnauthorizedMissing or invalid authentication
403ForbiddenInsufficient scopes or permissions
404Not FoundResource does not exist
409ConflictResource already exists or conflicting state
422UnprocessableValidation error in request body
429Too Many RequestsRate limit exceeded
500Internal ErrorServer error (please report)

Error Response Format

All error responses follow this structure:

{
  "error": "error_code",
  "message": "Human-readable description of the error",
  "details": {
    // Optional additional context
  }
}

Common Error Codes

Authentication Errors

Error CodeHTTPDescription
invalid_api_key401API key is invalid or revoked
expired_token401OAuth token has expired
insufficient_scope403API key lacks required scope
tenant_mismatch403API key belongs to a different tenant

Booking Errors

Error CodeHTTPDescription
object_not_found404Object ID does not exist
slot_not_available409Requested time slot is already booked
outside_opening_hours422Booking falls outside opening hours
invalid_duration422Booking duration violates rules
booking_not_cancellable422Cancellation policy prevents cancellation

Device Errors

Error CodeHTTPDescription
invalid_activation_code400Activation code is wrong or expired
device_already_activated409Device has already been activated
device_disabled403Device is disabled by admin

Rate Limiting

Error CodeHTTPDescription
rate_limit_exceeded429Too many requests. Check rate limit headers.