{"library":"http-custom-errors","type":"library","category":null,"description":"Custom error classes for all HTTP status codes (4xx and 5xx) in Node.js. Current stable version is 8.0.0, released periodically with low churn. Unlike generic error packages, it provides individual constructors for each status code (e.g., NotFoundError, ForbiddenError) and a factory function createHTTPError(code) that returns the correct error class by numeric status. Errors have code and status properties matching the HTTP status. This library is designed for use with Express.js error-handling middleware. It supports CommonJS only and has no runtime dependencies.","language":"javascript","status":"active","version":"8.0.0","tags":["javascript","error","errors","http","status","util"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-custom-errors","imports":["const HTTPErrors = require('http-custom-errors')","const { NotFoundError } = require('http-custom-errors')","const { createHTTPError } = require('http-custom-errors')"]},{"cmd":"yarn add http-custom-errors","imports":[]},{"cmd":"pnpm add http-custom-errors","imports":[]}],"homepage":"https://jproulx.github.io/node-http-error","github":"https://github.com/jproulx/node-http-error","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-custom-errors","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/http-custom-errors/compatibility"}}