Skip to content

Errors and Rate Limiting

Error response format

All error responses use a compact JSON format:

json
{
  "error": "Human-readable error message",
  "code": "MACHINE_READABLE_CODE"
}
FieldTypeDescription
errorstringHuman-readable error description
codestringOptional machine-readable error code

HTTP status codes

StatusMeaning
400Bad request
401Missing or invalid authentication
403Authenticated but not permitted
404Resource not found
409Request conflicts with current state
429Request rate limited
500Internal server error

Common error codes

CodeTypical meaning
INVALID_CREDENTIALSWrong username or password
TOKEN_EXPIREDSession token has expired
PERMISSION_DENIEDThe signed-in user lacks access
NOT_FOUNDRequested resource not found
RATE_LIMITEDToo many requests
STREAM_UNAVAILABLEStream is not ready or cannot start

Rate limiting

OmniLux rate-limits API requests to protect the server. Exact thresholds and behavior can vary by endpoint and server configuration, so clients should always handle 429 responses gracefully and retry later.