restify-error-helper

0.0.5 • Public • Published

restify-validation-helper

Collection of helper-methods for easier input-validation in restify-apps.

errorHandler

Handles thrown exceptions of all types and wraps them in a restify-error

errorFactory

Creates a valid restify-error with custom status-code and message.

uncaughtExceptionHandler

Logs the exception and sends a 500-error to the user.

Dependents (1)

Package Sidebar

Install

npm i restify-error-helper

Weekly Downloads

0

Version

0.0.5

License

none

Last publish

Collaborators

  • johannes.reuter