hzel
Reference

Error Codes

API error envelope and known error codes.

Error Envelope

All API errors return a consistent JSON shape:

{
  "error": {
    "code": "CONTAINER_NOT_FOUND",
    "message": "The requested container does not exist"
  }
}

The HTTP status code accompanies the response (e.g., 404).

Success Envelope

Successful responses wrap the payload in a data field:

{
  "data": { }
}

Known Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid authentication token.
FORBIDDEN403Authenticated but insufficient permissions.
CSRF_REJECTED403Request is missing a valid CSRF token.
BAD_REQUEST400Malformed request.
VALIDATION_FAILED400Request body failed validation.
NOT_FOUND404Requested resource does not exist.
CONTAINER_NOT_FOUND404The specified container ID does not exist.
COMMAND_NOT_FOUND404The specified command job ID does not exist.
NOT_IMPLEMENTED501Endpoint is reserved or not yet available.
INTERNAL_ERROR500Unexpected server error.

HTTP Status Codes

StatusMeaning
200Success — response body contains { "data": … }.
204Success — no response body.
302Redirect (used by OAuth flows).
400Bad request — validation error.
401Unauthorized — missing or expired token.
403Forbidden — insufficient role or access level.
404Not found.
501Not implemented.
500Internal server error.