Class ErrorResponseFactory

Response factory that renders an Error object to the client in a specified format.

Hierarchy

Constructors

Properties

targetMode: "json" | "html" | "auto" = 'auto'
targetStatus: HTTPStatus = HTTPStatus.OK

The status that should be set on the response.

thrownError: Error

Methods