Class: UnknownStatusError
@ts-rest/core.UnknownStatusError
Hierarchy
Error↳
UnknownStatusError
Constructors
constructor
• new UnknownStatusError(response, knownResponseStatuses)
Parameters
| Name | Type |
|---|---|
response | Object |
response.body | unknown |
response.status | number |
knownResponseStatuses | string[] |
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
| Name | Type |
|---|---|
body | unknown |
status | number |
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