Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / index / ProblemDetailsInput

Interface: ProblemDetailsInput<T> ​

Defined in: src/lib/problem-details/types.ts:29

Input for the problemDetails factory. type and title are optional (auto-derived from status).

Type Parameters ​

T ​

T extends Record<string, unknown> = Record<string, unknown>

Properties ​

detail? ​

optional detail?: string

Defined in: src/lib/problem-details/types.ts:37

Human-readable explanation specific to this occurrence


extensions? ​

optional extensions?: T

Defined in: src/lib/problem-details/types.ts:41

RFC 9457 extension members (flattened to top level on serialization)


instance? ​

optional instance?: string

Defined in: src/lib/problem-details/types.ts:39

URI that identifies the specific occurrence


status ​

status: number

Defined in: src/lib/problem-details/types.ts:31

HTTP status code


title? ​

optional title?: string

Defined in: src/lib/problem-details/types.ts:35

Short summary of the problem type. Derived from status when omitted


type? ​

optional type?: string

Defined in: src/lib/problem-details/types.ts:33

Problem type URI. Defaults to "about:blank" when omitted