HTTPError
HTTPError class.
Table of Contents
Install
npm i @neumatter/http-error
Usage
uses:
import HTTPError from '@neumatter/http-error'
throw new HTTPError(404, 'not found')
throw new HTTPError(404)
throw new HTTPError('not found')
HTTPError class.
npm i @neumatter/http-error
import HTTPError from '@neumatter/http-error'
throw new HTTPError(404, 'not found')
throw new HTTPError(404)
throw new HTTPError('not found')
npm i @neumatter/http-error
0
1.0.1
none
4.45 kB
5