Skip to main content
View as Markdown

Error Handling - Getting Started

Error Handling​

Error response format:

{
"code": "INVALID_KS",
"message": "Invalid KS \"...\" - Error: EXPIRED_KS",
"objectType": "KalturaAPIException",
"args": { ... }
}

Common error codes:

CodeMeaningResolution
MISSING_KSNo KS providedAdd ks= parameter
INVALID_KSKS is malformed, expired, or revokedGenerate a fresh KS
SERVICE_FORBIDDENKS lacks permission for this serviceUse an ADMIN KS or add required privileges
INVALID_OBJECT_TYPEUnknown objectType valueCheck spelling and available types
PROPERTY_VALIDATION_CANNOT_BE_NULLRequired field missingAdd the required parameter
SERVICE_DOES_NOT_EXISTSMisspelled service nameCheck the service name
ACTION_DOES_NOT_EXISTSMisspelled action nameCheck the action name

Retry strategy: For transient errors (HTTP 5xx, timeouts), retry with exponential backoff: 1s, 2s, 4s, with jitter, up to 3 retries. For client errors (4xx, INVALID_KS, PROPERTY_VALIDATION_*), fix the request before retrying.