Skip to main content

HTTP status codes

StatusMeaningTypical cause
200SuccessRequest completed successfully.
201CreatedResource created (example: tenant or intent).
400Bad RequestValidation error or business rule failure.
401UnauthorizedMissing/invalid/expired auth token.
403ForbiddenAuthenticated but not linked to tenant.
404Not FoundResource does not exist in tenant scope.
500Internal Server ErrorUnexpected processing or escalation failure.

Common error payloads

{ "error": "Missing or invalid authorization header" }
{ "error": "Conversation not found" }
{ "success": false, "error": "Failed to create support ticket" }

WebSocket errors

WebSocket protocol errors are sent as message type error:
{
  "type": "error",
  "payload": {
    "message": "Invalid message format"
  }
}