Skip to main content
Version: v1

INackContent Interface

Interface for nack content.

Signature

export interface INackContent

Properties

PropertyModifiersTypeDescription
codenumberAn error code number that represents the error. It will be a valid HTTP error code. 403 errors are non retryable and client should acquire a new identity before reconnection. 400 errors are always immediately retriable 429 errors are retriable or non retriable (depends on type field).
messagestringA message about the nack for debugging/logging/telemetry purposes
retryAfteroptionalnumberOptional Retry-After time in seconds If specified, the client should wait this many seconds before retrying
typeNackErrorTypeType of the Nack.

Property Details

code

An error code number that represents the error. It will be a valid HTTP error code. 403 errors are non retryable and client should acquire a new identity before reconnection. 400 errors are always immediately retriable 429 errors are retriable or non retriable (depends on type field).

Signature

code: number;

Type: number

message

A message about the nack for debugging/logging/telemetry purposes

Signature

message: string;

Type: string

retryAfter

Optional Retry-After time in seconds If specified, the client should wait this many seconds before retrying

Signature

retryAfter?: number;

Type: number

type

Type of the Nack.

Signature

type: NackErrorType;

Type: NackErrorType