HttpErrorSettings: { cause: unknown; message: string; status: HttpErrorStatus }

Settings for creating an HttpError.

IMPORT_PATH: "@daiso-tech/core/http-router/contracts"

Type declaration

  • cause: unknown

    The underlying error cause, if any.

  • message: string

    A human-readable error message.

  • status: HttpErrorStatus

    The HTTP error status code (4xx or 5xx).