Error Reference
Error categories, HTTP status codes, and troubleshooting hints.
HTTP Status Codes
| Code | Meaning | Common cause |
|---|---|---|
| 200 | OK | Success |
| 201 | Created | Resource created |
| 400 | Bad Request | Invalid JSON, missing required field, validation error |
| 401 | Unauthorized | Invalid or missing API key/JWT |
| 403 | Forbidden | Insufficient role permissions |
| 404 | Not Found | Agent, workflow, or resource doesn't exist |
| 409 | Conflict | Invalid state transition (e.g., starting an already-running agent) |
| 422 | Unprocessable Entity | Semantic validation error |
| 429 | Too Many Requests | Rate limited (brute force protection) |
| 500 | Internal Server Error | Platform bug or unrecoverable failure |
| 502 | Bad Gateway | LLM provider unreachable |
| 503 | Service Unavailable | Circuit breaker open for all providers |
Error Categories
ValidationError
Invalid configuration or request data.
{
"error": {
"category": "ValidationError",
"message": "server.listen '...' is not a valid socket address"
}
}
Common causes:
- Invalid
config.tomlfields (see validation rules) - Missing required fields in API requests
- Invalid semver constraint in package dependencies
AuthenticationError
Request could not be authenticated.
{
"error": {
"category": "AuthenticationError",
"message": "Invalid or expired API key"
}
}
Troubleshoot: Check API key validity, expiration, and correct header format (Authorization: Bearer hzk_...).
AuthorizationError
Authenticated but insufficient permissions.
{
"error": "forbidden",
"message": "Role 'viewer' is not authorized for action 'agent:create'"
}
Troubleshoot: Check the role assigned to your key. See RBAC.
ProviderError
LLM provider returned an error or is unreachable.
Sub-types:
ProviderAuthFailed— invalid API key at the providerProviderUnavailable— network error or timeoutCircuitBreakerOpen— too many consecutive failuresRateLimited— provider returned 429
Troubleshoot: See provider troubleshooting.
AgentError
Agent lifecycle or execution error.
Sub-types:
InvalidStateTransition— e.g., starting an already-running agentAgentNotFound— referenced agent doesn't existExecutionTimeout— agent execution exceeded timeout
Troubleshoot: See agent troubleshooting.
WorkflowError
Workflow execution failure.
Sub-types:
StepTimeout— a step exceeded its timeoutAgentNotFound— workflow references a deleted agentStepFailed— a step returned an error (respecting error_mode)
PackageError
Catalog or package operation failure.
Sub-types:
SignatureMismatch— package signature verification failedContentHashMismatch— payload was modified after signingVersionConflict— incompatible dependency versionsCycleDetected— circular dependencyPackageNotFound— package not in any configured registry
MemoryError
Memory subsystem issue.
Sub-types:
MemoryViolation— cross-agent memory access attemptedSubsystemDegraded— SQLite connectivity issue
Troubleshoot: See troubleshooting recovery.
Related: