
StandardHttpError.js is a very simple but useful error class for JavaScript that represents HTTP errors. You can then detect it with instanceof in error handling middleware and act accordingly.
This package provides StandardHttpError.js usable with Node.js - an event-based server-side JavaScript engine.