interface ErrorResponseInit
Since 0.1.0

The initialization of an error response produced through the responder seam.

Properties

readonly
status: number

The HTTP status code to answer with.

readonly
title: string

The framework-default error member. In a formatted response this is the Problem Details detail when no detail is supplied.

readonly
optional
detail: string

An optional disclosure, kept verbatim by every format.

readonly
optional
details: Readonly<Record<string, unknown>>

Optional structured details (e.g. a validation errors array).

Usage

import { type ErrorResponseInit } from "common/src/index.ts";