Standard HTTP error class for Node.js. Proper serialization, no bloat. Extensible.
JavaScript
20
2
Other
StandardHttpError is a lightweight Node.js error class for representing HTTP errors, providing proper serialization and extensibility without bloat. It's designed for developers building web applications who need a standardized way to handle and throw HTTP errors, particularly useful with frameworks like Express or Koa for error handling middleware.
Total donated
Undistributed
Share with your subscribers:
Recipients
How the donated funds are distributed
Support the dependencies of moll/js-standard-http-error
Tiny library that simplifies subclassing and inheriting from Error while keeping the correct name and stack. Also supports constructing from an object of properties. Saves you from boilerplate.
Testing and assertion library with friendly BDD syntax — awesome.must.be.true(). Many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well tested stuff.