Error Codes

Complete reference of 30 error codes across 9 categories returned by the RAG Service.

Error response formatjson
{
  "error": {
    "code": "RAG_1100",
    "message": "Search query is empty or exceeds maximum length",
    "http": 400
  }
}

IngestionRAG_1000-1099

CodeHTTPNameDescriptionResolution
RAG_1000400INVALID_DOCUMENTDocument content is empty, too large, or in an unsupported formatCheck document size limits (max 50MB) and supported formats (PDF, DOCX, TXT, MD, HTML)
RAG_1001400INVALID_SOURCE_TYPEUnrecognized ingestion source typeUse valid source types: manual, confluence, notion, google-drive, sharepoint, url
RAG_1002409DOCUMENT_ALREADY_EXISTSDocument with this source ID already exists in the namespaceUse PUT to update existing documents or use a different source ID
RAG_1003502CHUNKING_FAILEDDocument chunking pipeline failedCheck document encoding and format; retry with different chunking strategy
RAG_1004502EMBEDDING_GENERATION_FAILEDEmbedding model failed to generate vectorsRetry; embedding provider may be temporarily unavailable

SearchRAG_1100-1199

CodeHTTPNameDescriptionResolution
RAG_1100400INVALID_QUERYSearch query is empty or exceeds maximum lengthProvide a non-empty query (max 10,000 characters)
RAG_1101400INVALID_SEARCH_TYPEUnrecognized search typeUse valid search types: semantic, keyword, hybrid
RAG_1102400INVALID_TOP_KtopK value out of rangeProvide topK between 1 and 100
RAG_1103502VECTOR_STORE_ERRORVector database returned an errorRetry; OpenSearch/vector store may be scaling
RAG_1104404NAMESPACE_NOT_FOUNDThe specified namespace does not existCreate the namespace first or check the namespace ID

Training & EvaluationRAG_1200-1299

CodeHTTPNameDescriptionResolution
RAG_1200400INVALID_GOLDEN_SETGolden set format is invalid or contains insufficient examplesProvide at least 10 query-answer pairs with relevance scores
RAG_1201400INVALID_EVALUATION_METRICUnrecognized evaluation metricUse valid metrics: ndcg, mrr, map, precision, recall, f1
RAG_1202409TRAINING_IN_PROGRESSA training job is already running for this namespaceWait for the current training job to complete or cancel it
RAG_1203502TRAINING_FAILEDTraining pipeline encountered an errorCheck training logs and retry with adjusted parameters

Embeddings & ModelsRAG_1300-1399

CodeHTTPNameDescriptionResolution
RAG_1300400INVALID_EMBEDDING_MODELRequested embedding model is not configuredUse GET /config/embedding-models to list available models
RAG_1301400DIMENSION_MISMATCHEmbedding dimensions do not match the index configurationEnsure the embedding model matches the namespace index dimensions (default: 1024)
RAG_1302502MODEL_PROVIDER_ERROREmbedding model provider returned an errorRetry; provider failover may activate automatically

Authentication & AuthorizationRAG_1400-1499

CodeHTTPNameDescriptionResolution
RAG_1400401UNAUTHORIZEDAuthentication requiredProvide a valid JWT token in Authorization header
RAG_1401403FORBIDDENInsufficient permissions for this operationRequest required role from admin
RAG_1402401INVALID_TOKENInvalid or expired authentication tokenObtain a fresh JWT token via auth-svc
RAG_1403403TIER_INSUFFICIENTCurrent subscription tier does not support this RAG featureTraining features require Pro tier; Custom GPT sync requires Enterprise

ValidationRAG_1500-1599

CodeHTTPNameDescriptionResolution
RAG_1500400VALIDATION_FAILEDRequest validation failedCheck request body against API docs
RAG_1501400MISSING_REQUIRED_FIELDRequired field is missingAdd the required field to the request body
RAG_1502400INVALID_UUIDProvided ID is not a valid UUIDUse standard UUID v4 format

AnalyticsRAG_1600-1699

CodeHTTPNameDescriptionResolution
RAG_1600400INVALID_DATE_RANGEDate range is invalid or exceeds maximum spanEnsure startDate < endDate and span does not exceed 90 days
RAG_1601404DASHBOARD_NOT_FOUNDAnalytics dashboard not found for this tenantEnsure documents have been ingested before querying analytics

DatabaseRAG_1900-1999

CodeHTTPNameDescriptionResolution
RAG_1900500DATABASE_ERRORDatabase operation failedRetry; Aurora Serverless may be scaling up
RAG_1901500TRANSACTION_FAILEDDatabase transaction failedRetry the operation

GeneralRAG_2000-2099

CodeHTTPNameDescriptionResolution
RAG_2000500INTERNAL_SERVER_ERRORInternal server errorRetry; if persistent, contact support with request_id
RAG_2001503SERVICE_UNAVAILABLEService temporarily unavailableRetry with exponential backoff