Response status

StatusMeaning
queuedAccepted and waiting
in_progressActive execution
completedWork and required durability completed
failedExecution or durability failed
cancelledIntentionally cancelled
incompleteStopped without a complete result

Error shape

{
  "error": {
    "message": "Missing scope responses:write",
    "type": "permission_error",
    "param": null,
    "code": "permission_denied"
  }
}

HTTP classes

StatusTypical meaning
400Invalid request or model
401Missing, invalid or revoked API key
403Missing scope or workspace permission
404Resource not found in the authorized workspace
409Runtime readiness or lifecycle conflict
413Payload exceeds a supported limit
429Rate or quota limit
500Internal execution failure

Stable code examples

CodeMeaning
unauthorizedAuthentication failed
permission_deniedScope or permission missing
not_foundAuthorized resource not found
conflictRequest conflicts with runtime state
rate_limitedRequest rate exceeded
quota_exceededAccount quota exceeded
upstream_unavailableProvider or dependency unavailable
run_failed_internalRun failed inside the platform boundary
cannot_cancel_terminalCancellation requested for terminal work
stream_cursor_expiredStreaming cursor is no longer valid

Interpreting stopped runs

Do not equate a cancelled run with a failed response. When all responses completed and the run stopped afterward during cleanup, Details reports:
responses completed, then the run stopped