pub fn codex_api_error_status(messages: &[Value]) -> Option<i64>
HTTP status of the Codex failure that ended the run: the last turn.failed event, or the last error event of a turn that did not complete.
turn.failed
error