Setu-TS
    Preparing search index...

    Interface HttpErrorInit

    Options accepted by the HttpError constructor.

    Extracted as a type so factory functions can accept a consistent object.

    0.1.0

    interface HttpErrorInit {
        cause?: Error;
        details?: Readonly<Record<string, unknown>>;
        message: string;
        statusCode: number;
    }
    Index
    cause?: Error

    Optional underlying cause (forwarded to the ES2022 Error cause chain).

    details?: Readonly<Record<string, unknown>>

    Optional structured details attached to the error body.

    message: string

    Human-readable error message.

    statusCode: number

    HTTP status code (e.g. 404).