@rmarscher/express-error-handling

v1.1.0
Standard way to handle errors in express routes.

Express Error Handling

This is a connect/express middleware to be added at the end of the middleware chain for error handling.

Tries to detect if the current request is a json api request of not. If it is, it will use our api-envelope to return and error message. Otherwise, it will use express' error template.

npm i @rmarscher/express-error-handling

Metadata

  • ISC
  • Whatever
  • Rob Marscher
  • released 1/28/2016

Downloads

Maintainers