@runloop/remote-agents-sdk
    Preparing search index...

    Type Alias CodexErrorInfo

    CodexErrorInfo:
        | "contextWindowExceeded"
        | "sessionBudgetExceeded"
        | "usageLimitExceeded"
        | "serverOverloaded"
        | "cyberPolicy"
        | { httpConnectionFailed: { httpStatusCode: number
        | null } }
        | { responseStreamConnectionFailed: { httpStatusCode: number | null } }
        | "internalServerError"
        | "unauthorized"
        | "badRequest"
        | "threadRollbackFailed"
        | "sandboxError"
        | { responseStreamDisconnected: { httpStatusCode: number | null } }
        | { responseTooManyFailedAttempts: { httpStatusCode: number | null } }
        | { activeTurnNotSteerable: { turnKind: NonSteerableTurnKind } }
        | "other"

    This translation layer make sure that we expose codex error code in camel case.

    When an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in httpStatusCode on the relevant codexErrorInfo variant.