ResponseErrorObject
@tsed/platform-http
Usage
typescript
import { ResponseErrorObject } from "@tsed/platform-http";
See /packages/platform/platform-http/src/types/common/interfaces/ResponseErrorObject.ts.
Overview
ts
interface ResponseErrorObject extends Error {
errors?: Error[] | Error | any;
origin?: Error;
headers?: {};
}
Description
Interface can be implemented to customize the error sent to the client.
errors
ts
errors?: Error[] | Error | any;
origin
ts
origin?: Error;
headers
ts
headers?: {};