API reference
/problem
@senrijs/senri/problem: RFC 9457 Problem Details
RFC 9457 Problem Details.
import { ... } from "@senrijs/senri/problem";Functions and classes
| Name | What it does |
|---|---|
problemDetails(options?) | Creates handlers for onError and notFound |
ProblemError | An HttpError with Problem Details |
problem(c, details?) | Returns Problem Details without throwing |
Types
ProblemDetails
Prop
Type
ProblemDetailsOptions
Prop
Type
Source: src/problem.ts