interface

quic.QuicErrorOptions

interface QuicErrorOptions

  • code?: string

    The Node.js-style error code string assigned to error.code. Defaults to 'ERR_QUIC_STREAM_ABORTED'.

  • errorCode?: number | bigint

    The numeric QUIC error code. Numbers are coerced to BigInt. Must be a non-negative 62-bit unsigned varint (0n <= errorCode <= 2n ** 62n - 1n).

  • type?: 'transport' | 'application'

    Either 'application' (default) or 'transport'. Indicates whether the code is defined by the negotiated application protocol (e.g. RFC 9114 for HTTP/3) or by the QUIC transport layer (RFC 9000). Stream resets always carry application codes, so the default is 'application'.