extendable-http-errors
Version:
Extendable http error for node server using es2015, covers most HTTP default errors and allow extending them for custom errors.
13 lines (10 loc) • 372 B
JavaScript
const httpErrors = require('./http-errors');
const initGlobalErrors = require('./lib/init-global-errors');
const prettifyErrorFunction = require('./lib/prettify-error.function');
const prettifyErrorMiddleware = require('./lib/prettify-error.middleware');
module.exports = {
httpErrors,
initGlobalErrors,
prettifyErrorFunction,
prettifyErrorMiddleware
};