Skip to main content

Class: UnknownStatusError

@ts-rest/core.UnknownStatusError

Hierarchy

  • Error

    UnknownStatusError

Constructors

constructor

new UnknownStatusError(response, knownResponseStatuses)

Parameters

NameType
responseObject
response.bodyunknown
response.statusnumber
knownResponseStatusesstring[]

Overrides

Error.constructor

Defined in

libs/ts-rest/core/src/lib/unknown-status-error.ts:4

Properties

message

message: string

Inherited from

Error.message

Defined in

node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts:1068


name

name: string

Inherited from

Error.name

Defined in

node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts:1067


response

response: Object

Type declaration

NameType
bodyunknown
statusnumber

Defined in

libs/ts-rest/core/src/lib/unknown-status-error.ts:2


stack

Optional stack: string

Inherited from

Error.stack

Defined in

node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts:1069