yunlongzha_try_nodejs
Version:
try it
1 lines • 23.3 kB
JSON
{"_id":"http-errors","_rev":"41-e133914415bfb60ff7cfe05e6f98dc18","name":"http-errors","description":"Create HTTP error objects","dist-tags":{"latest":"1.3.1"},"versions":{"0.0.1":{"name":"http-errors","description":"A node module that returns a hash of Error classes representing HTTP errors indexed by error code.","url":"https://github.com/egeste/http-errors","keywords":["util","errors","http"],"author":{"name":"Steve","email":"npm@egeste.net","url":"Egesté"},"repository":{"type":"git","url":"git://github.com/egeste/http-errors.git"},"main":"http-errors.js","version":"0.0.1","engines":{"node":"*"},"_engineSupported":true,"_npmUser":{"name":"egeste","email":"npm@egeste.net"},"_id":"http-errors@0.0.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"caa1ff00ef680ee6cef845d4dd5e23aecc2617e0","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-0.0.1.tgz"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"}],"directories":{}},"1.0.0":{"name":"http-errors","description":"Create HTTP error objects","version":"1.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"statuses":"~1.0.4"},"devDependencies":{"istanbul":"0","mocha":"1"},"scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"afcbd1aab20d555acca14efb75263bcabee25482","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.0.0","_shasum":"bd58a089bfec699480300e472e0d552211bce27c","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"bd58a089bfec699480300e472e0d552211bce27c","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"http-errors","description":"Create HTTP error objects","version":"1.0.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"statuses":"~1.0.4"},"devDependencies":{"istanbul":"0","mocha":"1"},"scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"7d68ca1b35ec91be127ecc178c1155ef7f7f3e74","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.0.1","_shasum":"6b770d23b04759f166b0904200aa50775ce2b4a8","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"6b770d23b04759f166b0904200aa50775ce2b4a8","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.0.1.tgz"},"directories":{}},"1.1.0":{"name":"http-errors","description":"Create HTTP error objects","version":"1.1.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"statuses":"~1.0.4"},"devDependencies":{"istanbul":"0","mocha":"1"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"7b59d5f38857d25e881276c17b4775c7925c611f","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.1.0","_shasum":"fc2efe9e9ddead125e6b82023eee7eb3e7785dc1","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"fc2efe9e9ddead125e6b82023eee7eb3e7785dc1","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.1.0.tgz"},"directories":{}},"1.2.0":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"statuses":"~1.0.4"},"devDependencies":{"istanbul":"0","mocha":"1"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"355036ba35cb1bc79a11a720e83c76ef8596fcde","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.0","_shasum":"936739e42c3e9b778d84b30bce32802fd5eb9c75","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"936739e42c3e9b778d84b30bce32802fd5eb9c75","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.0.tgz"},"directories":{}},"1.2.1":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"^2.0.1","statuses":"~1.0.4"},"devDependencies":{"istanbul":"0","mocha":"1"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"5ec45187d58c85bb83fed7e7583437977b249688","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.1","_shasum":"ad25618756c76137f6f28d6aac76224559daf7bf","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.11.13","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"ad25618756c76137f6f28d6aac76224559daf7bf","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.1.tgz"},"directories":{}},"1.2.2":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.2","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"^2.0.1","statuses":"~1.0.4"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"84fa640675339c5c5dd915837b4932a19c2c839a","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.2","_shasum":"ee6fac5b7711f7d5c74c8d8e9ac3d9bb68697540","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.11.13","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"ee6fac5b7711f7d5c74c8d8e9ac3d9bb68697540","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.2.tgz"},"directories":{}},"1.2.3":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.3","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"^2.0.1","statuses":"~1.1.0"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"1c4dd0def7803585e64f152418864b551a0191dd","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.3","_shasum":"1e08daccbebfb175edfb1a11409f9d687fee488c","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.11.13","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"1e08daccbebfb175edfb1a11409f9d687fee488c","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.3.tgz"},"directories":{}},"1.2.4":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.4","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"~2.0.1","statuses":"~1.1.0"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"b20af52f8ef4fc975ce5c3b628e6cd4a68089c85","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.4","_shasum":"5d7d6d2d27b1917777ad1869bab742b6c53699d2","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.11.13","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"5d7d6d2d27b1917777ad1869bab742b6c53699d2","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.4.tgz"},"directories":{}},"1.2.5":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.5","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"~2.0.1","statuses":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"61c0b37666a71942edac4c6bebb87ea8bc8b7fb9","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.5","_shasum":"61da92170b47c12bd11083653e9ed44a9b7abe92","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.11.14","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"61da92170b47c12bd11083653e9ed44a9b7abe92","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.5.tgz"},"directories":{}},"1.2.6":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.6","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"~2.0.1","statuses":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"fab86d5ed56a2046fd9a8aa066283a63d211a5ea","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.6","_shasum":"7dc790939e6dc6fb90917b12456a11ad8cf05af0","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.11.14","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"7dc790939e6dc6fb90917b12456a11ad8cf05af0","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.6.tgz"},"directories":{}},"1.2.7":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.7","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"~2.0.1","statuses":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","LICENSE"],"gitHead":"42172e6b334c873d54ced516ba12db5a461e3878","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.7","_shasum":"b881fa12c59b0079fd4ced456bf8dbc9610d3b78","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.11.14","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"b881fa12c59b0079fd4ced456bf8dbc9610d3b78","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.7.tgz"},"directories":{}},"1.2.8":{"name":"http-errors","description":"Create HTTP error objects","version":"1.2.8","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"~2.0.1","statuses":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","HISTORY.md","LICENSE","README.md"],"gitHead":"c6654476fe3f02013259920cc04d9ae6c3b1ba16","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.2.8","_shasum":"8ee5fe0b51982221d796c0c4712d76f72097a4d0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"8ee5fe0b51982221d796c0c4712d76f72097a4d0","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.2.8.tgz"},"directories":{}},"1.3.0":{"name":"http-errors","description":"Create HTTP error objects","version":"1.3.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"contributors":[{"name":"Alan Plum","email":"me@pluma.io"},{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"~2.0.1","statuses":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","HISTORY.md","LICENSE","README.md"],"gitHead":"420a333a3c216cd532cbc46aeaeb0d1879c3e602","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.3.0","_shasum":"239d3bf15d98ea5b3ef553020d60314a2beb2288","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"239d3bf15d98ea5b3ef553020d60314a2beb2288","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.3.0.tgz"},"directories":{}},"1.3.1":{"name":"http-errors","description":"Create HTTP error objects","version":"1.3.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"contributors":[{"name":"Alan Plum","email":"me@pluma.io"},{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"dependencies":{"inherits":"~2.0.1","statuses":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"keywords":["http","error"],"files":["index.js","HISTORY.md","LICENSE","README.md"],"gitHead":"89a8502b40d5dd42da2908f265275e2eeb8d0699","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"homepage":"https://github.com/jshttp/http-errors","_id":"http-errors@1.3.1","_shasum":"197e22cdebd4198585e8694ef6786197b91ed942","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"197e22cdebd4198585e8694ef6786197b91ed942","tarball":"http://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz"},"directories":{}}},"readme":"# http-errors\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nCreate HTTP errors for Express, Koa, Connect, etc. with ease.\n\n## Example\n\n```js\nvar createError = require('http-errors');\n\napp.use(function (req, res, next) {\n if (!req.user) return next(createError(401, 'Please login to view this page.'));\n next();\n})\n```\n\n## API\n\nThis is the current API, currently extracted from Koa and subject to change.\n\n### Error Properties\n\n- `message`\n- `status` and `statusCode` - the status code of the error, defaulting to `500`\n\n### createError([status], [message], [properties])\n\n```js\nvar err = createError(404, 'This video does not exist!');\n```\n\n- `status: 500` - the status code as a number\n- `message` - the message of the error, defaulting to node's text for that status code.\n- `properties` - custom properties to attach to the object\n\n### new createError\\[code || name\\](\\[msg]\\))\n\n```js\nvar err = new createError.NotFound();\n```\n\n- `code` - the status code as a number\n- `name` - the name of the error as a \"bumpy case\", i.e. `NotFound` or `InternalServerError`.\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/http-errors.svg?style=flat\n[npm-url]: https://npmjs.org/package/http-errors\n[node-version-image]: https://img.shields.io/node/v/http-errors.svg?style=flat\n[node-version-url]: http://nodejs.org/download/\n[travis-image]: https://img.shields.io/travis/jshttp/http-errors.svg?style=flat\n[travis-url]: https://travis-ci.org/jshttp/http-errors\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/http-errors.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/jshttp/http-errors\n[downloads-image]: https://img.shields.io/npm/dm/http-errors.svg?style=flat\n[downloads-url]: https://npmjs.org/package/http-errors\n","maintainers":[{"name":"egeste","email":"npm@egeste.net"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"time":{"modified":"2015-02-03T02:06:48.009Z","created":"2012-11-18T05:58:21.693Z","0.0.1":"2012-11-18T05:58:24.328Z","1.0.0":"2014-09-08T20:04:47.893Z","1.0.1":"2014-09-08T20:20:32.230Z","1.1.0":"2014-09-09T05:00:38.695Z","1.2.0":"2014-09-09T18:10:07.228Z","1.2.1":"2014-09-22T00:44:17.769Z","1.2.2":"2014-09-22T00:44:44.079Z","1.2.3":"2014-09-22T00:55:10.961Z","1.2.4":"2014-09-22T01:02:14.380Z","1.2.5":"2014-09-29T04:22:37.194Z","1.2.6":"2014-10-03T07:59:29.863Z","1.2.7":"2014-10-15T04:16:16.798Z","1.2.8":"2014-12-09T20:41:08.043Z","1.3.0":"2015-02-02T01:09:28.350Z","1.3.1":"2015-02-03T02:06:48.009Z"},"author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"repository":{"type":"git","url":"https://github.com/jshttp/http-errors"},"users":{"goodseller":true,"tchcxp":true,"maximilianschmitt":true,"h0ward":true,"antanst":true},"keywords":["http","error"],"readmeFilename":"README.md","homepage":"https://github.com/jshttp/http-errors","bugs":{"url":"https://github.com/jshttp/http-errors/issues"},"license":"MIT","contributors":[{"name":"Alan Plum","email":"me@pluma.io"},{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"_attachments":{},"_etag":"\"634Y56TZCOOH3MCVN035HTW6Q\""}