Genkit JS API reference
    Preparing search index...

    Interface ErrorResponseMetadata

    Metadata from the HTTP response that triggered this error. This is not serialized into the wire format — it's only available in-process for middleware (e.g. retry) to make informed decisions.

    interface ErrorResponseMetadata {
        headers?: Record<string, string>;
        retryAfterMs?: number;
    }
    Index

    Properties

    headers?: Record<string, string>

    Raw HTTP response headers, if available.

    retryAfterMs?: number

    Provider-suggested retry delay in milliseconds (parsed from Retry-After header).