Error Codes

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

Error response formatjson
{
  "error": {
    "code": "CHAT_1000",
    "message": "Message content is empty, exceeds length limit, or contains forbidden content",
    "http": 400
  }
}

MessagesCHAT_1000-1099

CodeHTTPNameDescriptionResolution
CHAT_1000400INVALID_MESSAGEMessage content is empty, exceeds length limit, or contains forbidden contentCheck message content length (max 10,000 characters)
CHAT_1001404MESSAGE_NOT_FOUNDThe specified message does not exist or is not accessibleVerify the message ID and thread membership
CHAT_1002403MESSAGE_EDIT_FORBIDDENCannot edit a message you did not authorOnly the original sender can edit a message
CHAT_1003400ATTACHMENT_TOO_LARGEAttachment exceeds maximum file sizeReduce attachment size (max 25 MB per file)
CHAT_1004400UNSUPPORTED_MESSAGE_TYPEThe specified message type is not supportedUse a valid type: text, image, file, audio, video, system

ThreadsCHAT_1100-1199

CodeHTTPNameDescriptionResolution
CHAT_1100404THREAD_NOT_FOUNDThe specified thread does not exist or is not accessibleVerify the thread ID and user membership
CHAT_1101403NOT_THREAD_MEMBERYou are not a member of this threadRequest access or join the thread first
CHAT_1102409THREAD_ARCHIVEDCannot send messages to an archived threadUnarchive the thread before sending messages
CHAT_1103400INVALID_THREAD_TYPEThread type is not validUse a valid type: direct, group, channel

ReactionsCHAT_1200-1299

CodeHTTPNameDescriptionResolution
CHAT_1200400INVALID_EMOJIThe specified emoji is not a valid Unicode emojiUse a standard Unicode emoji character
CHAT_1201409REACTION_EXISTSYou already reacted with this emoji on this messageRemove the existing reaction before adding the same one

ModerationCHAT_1300-1399

CodeHTTPNameDescriptionResolution
CHAT_1300403USER_BLOCKEDYou have been blocked by this user or in this threadContact an admin to resolve the block
CHAT_1301403CONTENT_BLOCKEDMessage flagged by content moderation (DLP)Remove sensitive or prohibited content from the message
CHAT_1302404REPORT_NOT_FOUNDThe specified moderation report does not existVerify the report ID

AI FeaturesCHAT_1400-1499

CodeHTTPNameDescriptionResolution
CHAT_1400402INSUFFICIENT_AI_CREDITSInsufficient AI credits for this operationPurchase additional credits or upgrade subscription tier
CHAT_1401503AI_SERVICE_UNAVAILABLEAI service (llm-orch-svc) is temporarily unavailableRetry after a short delay
CHAT_1402400TRANSLATE_UNSUPPORTED_LANGUAGETarget language is not supported for translationUse a supported ISO 639-1 language code

AuthenticationCHAT_1500-1599

CodeHTTPNameDescriptionResolution
CHAT_1500401UNAUTHORIZEDAuthentication requiredProvide a valid JWT token in Authorization header
CHAT_1501403FORBIDDENInsufficient permissions for this operationRequest required role from admin
CHAT_1502401INVALID_TOKENInvalid or expired authentication tokenObtain a fresh JWT token via auth-svc

ValidationCHAT_1600-1699

CodeHTTPNameDescriptionResolution
CHAT_1600400VALIDATION_FAILEDRequest validation failedCheck request body against API docs
CHAT_1601400MISSING_REQUIRED_FIELDRequired field is missing from the requestAdd the required field to the request body

WebSocketCHAT_1700-1799

CodeHTTPNameDescriptionResolution
CHAT_1700401WS_AUTH_FAILEDWebSocket authentication failedProvide a valid JWT token in the auth handshake
CHAT_1701429WS_RATE_LIMITEDWebSocket message rate limit exceededReduce message frequency; wait before retrying

GeneralCHAT_1800-1899

CodeHTTPNameDescriptionResolution
CHAT_1800500INTERNAL_SERVER_ERRORInternal server errorRetry; if persistent, contact support with request_id
CHAT_1801503SERVICE_UNAVAILABLEService temporarily unavailableRetry with exponential backoff
CHAT_1802504TIMEOUTRequest timeoutReduce request complexity or retry