{"library":"api-problem","type":"library","category":null,"description":"api-problem is a JavaScript utility library designed to standardize error responses in HTTP APIs according to RFC 7807, \"Problem Details for HTTP APIs.\" It provides a `Problem` class that allows developers to construct detailed, machine-readable error objects for various HTTP status codes. These objects include a status, human-readable title, a URI identifying the problem type (which defaults to MDN HTTP status pages since v9), and optional additional fields. The current stable version is 9.0.2. The library maintains an active release cadence, primarily focusing on security updates, dependency bumps, CI/CD improvements, and dropping support for older Node.js versions to align with modern JavaScript ecosystems. Its core differentiator is strict adherence to the RFC 7807 specification, ensuring consistent and interoperable error communication across different API clients and servers.","language":"javascript","status":"active","version":"9.0.2","tags":["javascript","api","http","problem"],"last_verified":"Wed May 27","install":[{"cmd":"npm install api-problem","imports":["import Problem from 'api-problem'","const Problem = require('api-problem')","import type Problem from 'api-problem'"]},{"cmd":"yarn add api-problem","imports":[]},{"cmd":"pnpm add api-problem","imports":[]}],"homepage":null,"github":"https://github.com/ahmadnassri/node-api-problem","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/api-problem","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/api-problem/compatibility"}}