@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?
optionaldetail?:string
Defined in: src/lib/problem-details/types.ts:37
Human-readable explanation specific to this occurrence
extensions?
optionalextensions?:T
Defined in: src/lib/problem-details/types.ts:41
RFC 9457 extension members (flattened to top level on serialization)
instance?
optionalinstance?: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?
optionaltitle?:string
Defined in: src/lib/problem-details/types.ts:35
Short summary of the problem type. Derived from status when omitted
type?
optionaltype?:string
Defined in: src/lib/problem-details/types.ts:33
Problem type URI. Defaults to "about:blank" when omitted