https://github.com/trekjs/http-error
Http Error for Trek.js
https://github.com/trekjs/http-error
Last synced: about 1 month ago
JSON representation
Http Error for Trek.js
- Host: GitHub
- URL: https://github.com/trekjs/http-error
- Owner: trekjs
- License: mit
- Created: 2016-10-07T09:48:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T01:49:54.000Z (almost 8 years ago)
- Last Synced: 2025-04-21T14:36:03.514Z (2 months ago)
- Language: JavaScript
- Size: 115 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
http-error
----------A Http Error for Trek.js
## Installation
```console
$ npm install trek-http-error --save
```## Examples
```js
const HttpError = require('trek-http-error')throw new HttpError(404, 'Not Found!')
```## Badges
[](https://travis-ci.org/trekjs/http-error)
[](https://codecov.io/gh/trekjs/http-error)
---
> [fundon.me](https://fundon.me) ·
> GitHub [@fundon](https://github.com/fundon) ·
> Twitter [@_fundon](https://twitter.com/_fundon)