Express REST Error

JSON →
library 1.2.1 ·javascript maintenance
verified Jun 7, 2026

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.