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.
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.