property HttpError.prototype.details

Structured details appended to the error body. Omitted entirely when not supplied (never undefined) so serialization stays clean.

declare suppresses the ES2022 class-field initialization that would otherwise set this to undefined on every instance — it only exists on the object when actually assigned by the constructor.

Type

Readonly<Record<string, unknown>>

Usage

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