Error Codes

Complete reference of 33 error codes across 11 categories returned by the LLM Orchestration Service.

Error response formatjson
{
  "error": {
    "code": "LLM_1000",
    "message": "Prompt is empty, exceeds token limit, or contains forbidden content",
    "http": 400
  }
}

InferenceLLM_1000-1099

CodeHTTPNameDescriptionResolution
LLM_1000400INVALID_PROMPTPrompt is empty, exceeds token limit, or contains forbidden contentCheck prompt length and content against model limits
LLM_1001400INVALID_MODELRequested model or variant not foundUse GET /variants to list available models
LLM_1002502PROVIDER_ERRORUpstream LLM provider returned an errorRetry; the provider may be temporarily unavailable
LLM_1003504INFERENCE_TIMEOUTInference request timed out before completionReduce maxTokens or prompt complexity, then retry
LLM_1004400UNSUPPORTED_USE_CASEThe specified useCase is not recognizedCheck valid use cases: event-creation, moderation, translation, etc.

EmbeddingsLLM_1100-1199

CodeHTTPNameDescriptionResolution
LLM_1100400EMBEDDING_INPUT_TOO_LONGInput text exceeds the embedding model token limitChunk input into smaller segments (max 8192 tokens)
LLM_1101400BATCH_TOO_LARGEBatch embedding request exceeds maximum itemsLimit batch size to 100 items per request
LLM_1102502EMBEDDING_PROVIDER_ERROREmbedding provider returned an errorRetry; provider failover may activate automatically

RerankLLM_1200-1299

CodeHTTPNameDescriptionResolution
LLM_1200400RERANK_INVALID_INPUTQuery or documents array is invalidProvide a non-empty query and documents array
LLM_1201502RERANK_PROVIDER_ERRORRerank provider returned an errorRetry; the rerank provider may be temporarily unavailable

ProvidersLLM_1300-1399

CodeHTTPNameDescriptionResolution
LLM_1300404PROVIDER_NOT_FOUNDThe specified provider does not existUse GET /providers to list available providers
LLM_1301503PROVIDER_CIRCUIT_OPENProvider circuit breaker is open due to repeated failuresWait for circuit breaker half-open interval or use a different provider
LLM_1302503ALL_PROVIDERS_UNAVAILABLEAll providers in the failover chain are unavailableRetry later; check provider status at GET /providers/health
LLM_1303409PROVIDER_ALREADY_EXISTSA provider with this name already existsUse a different name or update the existing provider

Quota & CreditsLLM_1400-1499

CodeHTTPNameDescriptionResolution
LLM_1400429RATE_LIMIT_EXCEEDEDRate limit exceeded for this tenant or userImplement exponential backoff; check Retry-After header
LLM_1401402INSUFFICIENT_CREDITSInsufficient AI credits in walletPurchase additional credits or upgrade subscription tier
LLM_1402402BUDGET_EXCEEDEDRequest cost exceeds x-budget-max-usd header limitIncrease budget header or reduce request complexity
LLM_1403429QUOTA_EXCEEDEDMonthly quota exceeded for this subscription tierUpgrade subscription tier or wait for quota reset

AuthenticationLLM_1500-1599

CodeHTTPNameDescriptionResolution
LLM_1500401UNAUTHORIZEDAuthentication requiredProvide a valid JWT token in Authorization header
LLM_1501403FORBIDDENInsufficient permissions for this operationRequest required role from admin
LLM_1502401INVALID_TOKENInvalid or expired authentication tokenObtain a fresh JWT token via auth-svc
LLM_1503403TIER_INSUFFICIENTCurrent subscription tier does not support this featureUpgrade to Pro or Enterprise tier

ValidationLLM_1600-1699

CodeHTTPNameDescriptionResolution
LLM_1600400VALIDATION_FAILEDRequest validation failedCheck request body against API docs
LLM_1601400INVALID_INPUTInvalid input providedReview field constraints (type, min/max, pattern)
LLM_1602400MISSING_REQUIRED_FIELDRequired field is missingAdd the required field to the request body

Semantic CacheLLM_1700-1799

CodeHTTPNameDescriptionResolution
LLM_1700400CACHE_KEY_INVALIDCache key format is invalidUse valid cache key format: <use-case>:<hash>
LLM_1701404CACHE_MISSNo cached response found for this promptThis is informational; the request will proceed to the provider

Prompt RegistryLLM_1800-1899

CodeHTTPNameDescriptionResolution
LLM_1800404TEMPLATE_NOT_FOUNDPrompt template not foundVerify the template ID or name exists
LLM_1801400TEMPLATE_VARIABLE_MISSINGRequired template variable not providedCheck template definition for required variables

DatabaseLLM_1900-1999

CodeHTTPNameDescriptionResolution
LLM_1900500DATABASE_ERRORDatabase operation failedRetry; Aurora Serverless may be scaling up
LLM_1901500TRANSACTION_FAILEDDatabase transaction failedRetry the operation

GeneralLLM_2000-2099

CodeHTTPNameDescriptionResolution
LLM_2000500INTERNAL_SERVER_ERRORInternal server errorRetry; if persistent, contact support with request_id
LLM_2001503SERVICE_UNAVAILABLEService temporarily unavailableRetry with exponential backoff
LLM_2002504TIMEOUTRequest timeoutReduce request complexity or retry