Express REST Error
JSON →Throws and handles HTTP errors (4xx) for Express REST APIs using service layer pattern. Version 1.2.1 is stable but has no releases since mid-2020. Provides simple factory functions (validationError, authRequired, etc.) and a middleware errorHandler. Differentiates from http-errors by being Express-specific and integrating with errorHandler middleware. Only 4 dependencies (http-status, lodash.iserror, ...). Not actively maintained but functional for many projects.
Resources
packageexpress-rest-error ↗
API endpoints
full doc /v1/registry/express-rest-error