Expand description
HTTP status of a failed API request, for every tool (issues #67, #69).
- Claude reports it as
result.api_error_status, and every retry as a{"type":"system","subtype":"api_retry","error_status":401}event. - Codex has no structured field: the status is only in the text of its
turn.failed/errorevents (unexpected status 401 Unauthorized: ...).
Constants§
- AUTH_
REFUSAL_ STATUSES - Statuses that refuse the credential: retrying cannot succeed.
Functions§
- api_
retry_ status - The HTTP status a Claude
system/api_retryevent reports. - auth_
refusal_ message - Message for a run stopped on an authentication refusal.
- auth_
refusal_ status - The 401/403 a retry event reports: the credential is refused and every further retry fails the same way (issue #69).
- codex_
api_ error_ status - HTTP status of the Codex failure that ended the run: the last
turn.failedevent, or the lasterrorevent of a turn that did not complete. - http_
status_ from_ error_ text - Parse the HTTP status from a Codex error text.
- last_
api_ retry_ status - Status of the last
api_retryevent in the stream. - resolve_
api_ error_ status - The run’s API error status.