Skip to content
Still using @dfinity/agent? Migrate to @icp-sdk/core!

HttpErrorCode

Defined in: packages/agent/src/errors.ts:720

  • ErrorCode

new HttpErrorCode(status, statusText, headers, bodyText?): HttpErrorCode

Defined in: packages/agent/src/errors.ts:723

number

string

HttpHeaderField[]

string

HttpErrorCode

ErrorCode.constructor

readonly optional bodyText: string

Defined in: packages/agent/src/errors.ts:727


optional callContext: CallContext

Defined in: packages/agent/src/errors.ts:39

ErrorCode.callContext


readonly headers: HttpHeaderField[]

Defined in: packages/agent/src/errors.ts:726


readonly isCertified: boolean = false

Defined in: packages/agent/src/errors.ts:41

ErrorCode.isCertified


name: string = 'HttpErrorCode'

Defined in: packages/agent/src/errors.ts:721


optional requestContext: RequestContext

Defined in: packages/agent/src/errors.ts:38

ErrorCode.requestContext


readonly status: number

Defined in: packages/agent/src/errors.ts:724


readonly statusText: string

Defined in: packages/agent/src/errors.ts:725

toErrorMessage(): string

Defined in: packages/agent/src/errors.ts:733

string

ErrorCode.toErrorMessage


toString(): string

Defined in: packages/agent/src/errors.ts:45

string

ErrorCode.toString