Interface: ProblemDetails
Defined in: packages/common/src/problem.ts:137
An RFC 9457 problem document, as sent on the wire.
Properties
callerShould
readonlycallerShould:CallerAction
Defined in: packages/common/src/problem.ts:152
What the caller should do next.
code?
readonlyoptionalcode?:string
Defined in: packages/common/src/problem.ts:160
The owning module's stable code for this refusal, such as subject.slug_taken,
for the kinds a module raises (validation, state, conflict, upstream, unavailable).
type names the kind and stays coarse; two refusals of one kind are told apart by
this, so a client branches on a value instead of parsing detail. RFC 9457
extension member.
correlationId
readonlycorrelationId:string
Defined in: packages/common/src/problem.ts:150
The correlation id of the request: the one thing support asks for first.
detail?
readonlyoptionaldetail?:string
Defined in: packages/common/src/problem.ts:148
This occurrence, in words safe to show a caller. Absent when it would disclose.
errors?
readonlyoptionalerrors?: readonlyProblemFieldError[]
Defined in: packages/common/src/problem.ts:162
Present on validation problems.
failedChecks?
readonlyoptionalfailedChecks?: readonlystring[]
Defined in: packages/common/src/problem.ts:164
Present on unavailable health problems: which named checks failed.
status
readonlystatus:number
Defined in: packages/common/src/problem.ts:146
title
readonlytitle:string
Defined in: packages/common/src/problem.ts:145
Fixed per kind, or per module code where the caller registered a title for that code
(grant.exists says what it is, not "a concurrent change"); never varies with the
occurrence.
type
readonlytype:string
Defined in: packages/common/src/problem.ts:139
Stable URI naming the error kind. Branch on this.