{"library":"throw.js","type":"library","category":null,"description":"A comprehensive HTTP error collection for REST APIs, currently at version 5.0.0. It provides over 20 error classes corresponding to HTTP status codes (4xx and 5xx) as per RFC7231, plus a CustomError for arbitrary status codes. Active development, with frequent releases. Key differentiators include built-in support for error chaining (stack preservation), optional error codes, and full TypeScript declarations. No runtime dependencies.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","rest","errors","api"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install throw.js","imports":["import { NotFound } from 'throw.js'","import { CustomError } from 'throw.js'","import { BadRequest } from 'throw.js'","import type { InternalServerError } from 'throw.js'"]},{"cmd":"yarn add throw.js","imports":[]},{"cmd":"pnpm add throw.js","imports":[]}],"homepage":"https://github.com/kbariotis/throw.js","github":"https://github.com/kbariotis/throw.js","docs":null,"changelog":null,"pypi":null,"npm":"throw.js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}