UNPKG

central-error-codes

Version:

Centralized error codes for SDK

48 lines (47 loc) 1.66 kB
{ "P2_SLINGSHOT_API_ERROR": { "errorCode": "P2_SLINGSHOT_API_ERROR", "statusCode": 500, "errorMessage": "Error while connecting to slingshot API" }, "P2_LITELLM_API_ERROR": { "errorCode": "P2_LITELLM_API_ERROR", "statusCode": 500, "errorMessage": "Error while connecting to slingshot API" }, "P2_CHUNK_PROCESSING_ERROR": { "errorCode": "P2_CHUNK_PROCESSING_ERROR", "statusCode": 500, "errorMessage": "Error processing the chunk" }, "P2_CHUNK_GENERATION_ERROR": { "errorCode": "P2_CHUNK_GENERATION_ERROR", "statusCode": 500, "errorMessage": "Error occurred during data chunk extraction" }, "P2_QUESTION_GENERATION_ERROR": { "errorCode": "P2_QUESTION_GENERATION_ERROR", "statusCode": 500, "errorMessage": "Error occurred during question generation" }, "P2_LLM_API_CONNECTION_ERROR": { "errorCode": "P2_LLM_API_CONNECTION_ERROR", "statusCode": 500, "errorMessage": "Unexpected error calling LLM API" }, "P2_LLM_WRAPPER_API_ERROR": { "errorCode": "P2_LLM_WRAPPER_API_ERROR", "statusCode": 500, "errorMessage": "Error occurred during llm wrapper call" }, "P2_QNA_GENERATION_ERROR": { "errorCode": "P2_QNA_GENERATION_ERROR", "statusCode": 500, "errorMessage": "Unexpected error during QnA generation" }, "P2_QNA_ENUM_ERROR": { "errorCode": "P2_QNA_ENUM_ERROR", "statusCode": 500, "errorMessage": "Failed to retrieve QnA enums" } }