Class HTTPErrorResponseFactory

Response factory that renders the given HTTPError in the specified output format.

Hierarchy

Constructors

Properties

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

The status that should be set on the response.

thrownError: Error

Methods