Skip to content

Error Codes

HEBBS uses standard gRPC status codes. Common mappings:

gRPC CodeNameMeaning
0OKSuccess
3INVALID_ARGUMENTMalformed request, validation failure
5NOT_FOUNDMemory or entity not found
7PERMISSION_DENIEDTenant/entity isolation violation
8RESOURCE_EXHAUSTEDRate limit, quota, or bounded resource exceeded
14UNAVAILABLEServer overloaded or temporarily down
16UNAUTHENTICATEDMissing or invalid auth (if auth enabled)

REST API maps gRPC codes to HTTP:

gRPC CodeHTTP Status
OK200
INVALID_ARGUMENT400 Bad Request
NOT_FOUND404 Not Found
PERMISSION_DENIED403 Forbidden
RESOURCE_EXHAUSTED429 Too Many Requests
UNAVAILABLE503 Service Unavailable
UNAUTHENTICATED401 Unauthorized

REST errors return JSON:

{
"code": "INVALID_ARGUMENT",
"message": "content is required",
"details": []
}

gRPC errors use the standard google.rpc.Status format with optional details for structured error info.

ErrorCauseResolution
content is requiredRemember request missing contentProvide non-empty content
memory not foundRevise/Forget with invalid IDVerify memory exists and entity scope
entity_id requiredForget without entity_id or memory_idsProvide at least one
strategy config invalidRecall with malformed strategyCheck strategy name and config schema
max_memories exceededRequest exceeds bounded limitReduce batch size or top_k
rate limit exceededToo many requestsBack off, respect rate limits