The framework-standard error body shape.
readonly
statusCode: number
The HTTP status code.
readonly
message: string
Human-readable error message.
readonly
optional
details: Readonly<Record<string, unknown>>
Optional structured details (present when the error carries any).
readonly
optional
stack: string
Optional stack trace (present only when includeStackTrace is on).