CoAgent8 - Source API
    Preparing search index...

    Interface ErrorDialect

    Where and how one backend reports structured errors.

    interface ErrorDialect {
        authCodes: readonly string[];
        codeFields: readonly string[];
        defaultMessage: string;
        httpFields: readonly string[];
        name: string;
        nested?: {
            codeFields: readonly string[];
            httpFields: readonly string[];
            messageFields: readonly string[];
        };
        notFoundCodes: readonly string[];
        rateLimitCodes: readonly string[];
        rateLimitParts: readonly string[];
        retryableCodes: readonly string[];
        sessionPattern: RegExp;
        classifyText(text: string): ExecutionError;
    }
    Index
    authCodes: readonly string[]
    codeFields: readonly string[]

    Fields read as error codes.

    defaultMessage: string

    Message when there is neither a payload message nor a fallback.

    httpFields: readonly string[]

    Fields read as an HTTP status, first match wins.

    name: string

    Provider name in messages built from a bare code, such as "Codex error (500)".

    nested?: {
        codeFields: readonly string[];
        httpFields: readonly string[];
        messageFields: readonly string[];
    }

    Fields of a nested error object, read after the top-level ones.

    notFoundCodes: readonly string[]
    rateLimitCodes: readonly string[]

    Codes, besides the shared ones, that mean a rate limit, missing authentication or not found.

    rateLimitParts: readonly string[]
    retryableCodes: readonly string[]

    Codes, besides HTTP 503, that make a generic structured error retryable.

    sessionPattern: RegExp

    Message pattern that turns a not-found error into SESSION_INVALID.