{"library":"generic-errors","type":"library","category":null,"description":"Provides error constructors with common HTTP status codes as numeric properties, supporting both Node.js and browser usage. Current stable version is 2.3.1 (last updated with dependency security patches). Release cadence is ad-hoc with occasional minor updates. Key differentiators: includes a stack-trace ponyfill for Safari compatibility, does not pollute stack depth, and offers detection via BaseError.isGenericError even after JSON serialization. Over 40 error types from 4xx and 5xx families are available.","language":"javascript","status":"active","version":"2.3.1","tags":["javascript","error","errors","http","custom","generic","code","404","200"],"last_verified":"Fri May 01","install":[{"cmd":"npm install generic-errors","imports":["const errors = require('generic-errors');\nconst notFound = new errors.NotFound('message');","import { BaseError } from 'generic-errors';","const { BadRequest } = require('generic-errors');"]},{"cmd":"yarn add generic-errors","imports":[]},{"cmd":"pnpm add generic-errors","imports":[]}],"homepage":null,"github":"https://github.com/MauriceButler/generic-errors","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/generic-errors","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}