brinkbit-express-errors
Express error handling middleware for http errors
Install
npm i --save brinkbit-express-errors
Overview
Designed for API usage, ingests brinkbit-custom-errors and any application errors that may have slipped through and sends the appropriate response to the client.
Usage
const errorWare = ;const customErrors = ;const express = ; const app = ; app;app // if you want to handle errors with an alternate response (i.e. UI)// simply drop that middleware higher in the stack and forward any other types of errorsapp;app;