Skip to content

Allow throwing custom errors which map to different HTTP error codes #4

Description

@mcwebb

Occasionally, in a promise chain for example, one may want to throw an error which doesn't cause a 500 response, because sometimes there are runtime errors which deserver a 400 response because it's the users fault.

Potentially there should be some custom errors which can be picked up by the dispatcher so that the application can easily tailor what error response is given to the client.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions