Skip to main content

Class: TsRestResponseError<T>

@ts-rest/core.TsRestResponseError

Type parameters

NameType
Textends AppRoute | AppRouter

Hierarchy

  • Error

    TsRestResponseError

Constructors

constructor

new TsRestResponseError<T>(route, response)

Type parameters

NameType
Textends AppRoute | AppRouter

Parameters

NameType
routeT
responseT extends AppRouter ? ServerCommonResponses<T, RemoveUnionProperties<Common<FlattenAppRouter<T>["responses"]>>> : ServerInferResponses<T>

Overrides

Error.constructor

Defined in

libs/ts-rest/core/src/lib/response-error.ts:10

Properties

body

body: any

Defined in

libs/ts-rest/core/src/lib/response-error.ts:8


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


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


statusCode

statusCode: HTTPStatusCode

Defined in

libs/ts-rest/core/src/lib/response-error.ts:7