0.0.5 • Published 9 years ago
trek-http-error v0.0.5
http-error
A Http Error for Trek.js
Installation
$ npm install trek-http-error --saveExamples
const HttpError = require('trek-http-error')
throw new HttpError(404, 'Not Found!')A Http Error for Trek.js
$ npm install trek-http-error --saveconst HttpError = require('trek-http-error')
throw new HttpError(404, 'Not Found!')