{"library":"http-problem-details","type":"library","category":null,"description":"This library provides an implementation of HTTP Problem Details (RFC 7807) for Node.js applications, enabling standardized machine-readable error responses for HTTP APIs. As of version 0.1.7, it offers classes like `ProblemDocument` and `ProblemDocumentExtension` to construct detailed error objects that conform to the specification, including standard fields like `type`, `title`, `status`, `detail`, and `instance`, as well as support for extension members. The package is built with TypeScript, providing strong typing out of the box, and explicitly validates `type` and `instance` fields as valid URIs, throwing errors on invalid input. While the project is in its early stages of development (pre-1.0.0), it encourages contributions and aims for strict RFC compliance, differentiating itself by offering a focused, unopinionated foundation for problem detail generation.","language":"javascript","status":"active","version":"0.1.7","tags":["javascript","http","problem","error","rfc7807","api","rest","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-problem-details","imports":["import { ProblemDocument } from 'http-problem-details';","import { ProblemDocumentExtension } from 'http-problem-details';","const { ProblemDocument, ProblemDocumentExtension } = require('http-problem-details');"]},{"cmd":"yarn add http-problem-details","imports":[]},{"cmd":"pnpm add http-problem-details","imports":[]}],"homepage":null,"github":"https://github.com/PDMLab/http-problem-details","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-problem-details","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/http-problem-details/compatibility"}}