{"library":"problem-details-http","title":"problem-details-http","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install problem-details-http"],"cli":null},"imports":["import { PDBuilder } from 'problem-details-http'","import problemDetailsHttp from 'problem-details-http'","import type { ProblemDetail } from 'problem-details-http'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { PDBuilder } from 'problem-details-http';\n\nconst pd = PDBuilder.fromDetail('Resource not found')\n  .type('https://example.com/errors/not-found')\n  .title('Not Found')\n  .status(404)\n  .instance('/api/users/123')\n  .build();\n\nconsole.log(pd);\n// {\n//   type: 'https://example.com/errors/not-found',\n//   status: 404,\n//   title: 'Not Found',\n//   detail: 'Resource not found',\n//   instance: '/api/users/123'\n// }","lang":"typescript","description":"Creates a problem details object using the builder pattern with default or custom values.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}