{"library":"http-error","type":"library","category":null,"description":"Exposes HTTP error codes as Error constructors for Node.js. This package (v0.0.6, last updated in 2014) provides a simple way to create HTTP error objects with status codes (e.g., NotFound, InternalServerError). It is a lightweight alternative to packages like http-errors or boom, but with a smaller API surface and no dependency on Express. Currently in maintenance mode; no releases since 2014.","language":"javascript","status":"maintenance","version":"0.0.6","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-error","imports":["const HttpError = require('http-error'); const err = new HttpError.NotFound('message');","const { NotFound } = require('http-error'); const err = new NotFound('message');","const InternalServerError = require('http-error').InternalServerError; const err = new InternalServerError('message');"]},{"cmd":"yarn add http-error","imports":[]},{"cmd":"pnpm add http-error","imports":[]}],"homepage":null,"github":"https://github.com/c9/node-http-error","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-error","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-error/compatibility"}}