Error Codes
Use normalized error codes so operators and integrations can react deterministically.
Authentication and authorization
unauthorizedpermission_deniedorganization_mismatch
Validation and request issues
invalid_payloadmissing_fieldunsupported_operation
Agent and execution issues
agent_not_foundagent_not_readyexecution_timeoutstep_failed
Infrastructure and dependency issues
external_service_errorstorage_unavailablequeue_unavailable
Billing and usage issues
subscription_requiredusage_limit_reachedbilling_provider_error
Response guidance
Return both code and context:
{ "error": "usage_limit_reached", "message": "Task run limit reached for current billing period", "details": { "plan": "starter", "remaining": 0 }}Keep public messages safe and avoid leaking secrets or internal topology.