{"library":"express-rest-error","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.2.1","tags":["javascript","express","rest","error","handling"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install express-rest-error","imports":["import { validationError } from 'express-rest-error'","import { authRequired } from 'express-rest-error'","import { errorHandler } from 'express-rest-error'"]},{"cmd":"yarn add express-rest-error","imports":[]},{"cmd":"pnpm add express-rest-error","imports":[]}],"homepage":"https://github.com/ww-tech/express-rest-error#readme","github":"https://github.com/ww-tech/express-rest-error","docs":null,"changelog":null,"pypi":null,"npm":"express-rest-error","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}