interface DefaultErrorBody
Since 0.1.0

The framework-standard error body shape.

Index Signatures

readonly [key: string] : unknown

Properties

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).

Usage

import { type DefaultErrorBody } from "exceptions/src/index.ts";