{"library":"error-http-response","type":"library","category":null,"description":"The `error-http-response` package provides a utility to convert JavaScript `Error` objects into standardized HTTP problem detail objects, adhering to RFC 7807. It's currently stable at version 3.0.1, with major releases primarily driven by updates to the minimal supported Node.js version. The library automatically maps standard error properties like `name`, `message`, and `stack` to the generated HTTP response fields, and allows for extensive customization via `error.http` properties or direct options. It supports both Node.js (>=18.18.0) and browser environments, and ships with TypeScript definitions, making it suitable for modern JavaScript and TypeScript projects that need to consistently format API error responses without manual serialization.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","api","browser","error","error-handler","error-handling","error-monitoring","http","http-response","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install error-http-response","imports":["import errorHttpResponse from 'error-http-response'","import errorHttpResponse from 'error-http-response';\n\nclass AuthError extends Error {\n  // ...\n}"]},{"cmd":"yarn add error-http-response","imports":[]},{"cmd":"pnpm add error-http-response","imports":[]}],"homepage":null,"github":"https://github.com/ehmicky/error-http-response","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/error-http-response","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/error-http-response/compatibility"}}