@grow-codes/apache-skywalking - v0.1.1
    Preparing search index...

    Interface ErrorResponse

    An HTTP error response (status >= 400, not in allowStatus), passed to an ErrorClassifier before the transport decides about retries and calls onError.

    interface ErrorResponse {
        attempt: number;
        body: string;
        defaultError: SkyWalkingError;
        headers: Headers;
        method: string;
        operation: string;
        reason?: string;
        requestId?: string;
        retryAfterMs?: number;
        status: number;
    }
    Index
    attempt: number

    1-based attempt number.

    body: string

    Raw response body text. It is NOT redacted: parse it (vendor error codes, request ids), but do not copy it into an error message unfiltered — use reason or HttpTransport.redact instead.

    defaultError: SkyWalkingError

    The error the transport throws when no classifier returns one (SPEC §2.1 mapping).

    headers: Headers
    method: string
    operation: string

    Operation name used in error messages (e.g. "GET /v1/x").

    reason?: string

    Vendor message extracted from the body: whitespace collapsed, redacted, truncated.

    requestId?: string
    retryAfterMs?: number
    status: number