1.0.1 • Published 1 year ago
@neumatter/http-error v1.0.1
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')