{"library":"create-http-error","type":"library","category":null,"description":"This package (version 1.0.3) provides a simple factory function to create HTTP error objects with a given numeric status code. It was last released in an earlier era and is not actively maintained. The error object includes the code, standard HTTP message, and optional custom message or properties. It exposes `.toString()`, `.toJSON()`, and a `.codes` property. It only supports CommonJS (require) and is intended for Node.js environments. No releases have been made in years, and the package may be considered stable but deprecated in favor of more modern alternatives like 'http-errors' or 'http-errors-promise'. Usage with ESM (import) may fail without a wrapper.","language":"javascript","status":"deprecated","version":"1.0.3","tags":["javascript","http","error"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install create-http-error","imports":["const HttpError = require('create-http-error')","import HttpError from 'create-http-error'","const codes = require('create-http-error').codes"]},{"cmd":"yarn add create-http-error","imports":[]},{"cmd":"pnpm add create-http-error","imports":[]}],"homepage":"https://github.com/intesso/create-http-error","github":"https://github.com/intesso/create-http-error","docs":null,"changelog":null,"pypi":null,"npm":"create-http-error","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}