An open API service indexing awesome lists of open source software.

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

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

[![Build Status](https://travis-ci.org/trekjs/http-error.svg?branch=master)](https://travis-ci.org/trekjs/http-error)
[![codecov](https://codecov.io/gh/trekjs/http-error/branch/master/graph/badge.svg)](https://codecov.io/gh/trekjs/http-error)
![](https://img.shields.io/badge/license-MIT-blue.svg)

---

> [fundon.me](https://fundon.me)  · 
> GitHub [@fundon](https://github.com/fundon)  · 
> Twitter [@_fundon](https://twitter.com/_fundon)