@hndlr/errors
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

erred

erred is a JS-less NPM Package for HTTPErrors that builds on publish

Usage

Import or require the errors and use them in place of your normal errors

const { NotFound, BadRequest } = require('@hndlr/errors')

let error = new NotFound('...')
error.status // 404

error = new BadRequest('...')
error.status // 400

Readme

Keywords

Package Sidebar

Install

npm i @hndlr/errors

Weekly Downloads

160

Version

0.1.0

License

ISC

Unpacked Size

45 kB

Total Files

6

Last publish

Collaborators

  • harrytwright