Library for HTTP problem details (RFC 7807) error responses. Current stable version is 2.0.0, updated frequently via GitHub. Supports building and sending consistent error payloads with optional extension members. Differentiator: fluent builder pattern, defaults for status codes and titles, TypeScript types included, zero dependencies.
npm install problem-details-httpVerified import paths — ran on the pinned version, not inferred.
Creates a problem details object using the builder pattern with default or custom values.
Change `import problemDetailsHttp from 'problem-details-http'` to `import { PDBuilder } from 'problem-details-http'`.Always start with `PDBuilder.fromDetail('...')`.Use `.status()` instead of `.setStatus()`.
Run `npm install problem-details-http` (not --save-dev). Add `"types": "dist/index.d.ts"` to tsconfig.json if needed.
Use `import { PDBuilder } from 'problem-details-http'` or enable ES modules in project.Replace `.setStatus()` with `.status()`.
No dependency data recorded yet.