Skip to Content
Senri
API reference

/problem

@senrijs/senri/problem: RFC 9457 Problem Details

RFC 9457 Problem Details.

import { ... } from "@senrijs/senri/problem";

Functions and classes

NameWhat it does
problemDetails(options?)Creates handlers for onError and notFound
ProblemErrorAn HttpError with Problem Details
problem(c, details?)Returns Problem Details without throwing

Types

ProblemDetails

Prop

Type

ProblemDetailsOptions

Prop

Type

Source: src/problem.ts

On this page