OptionaldataValidate error data on throw(). If provided, data is parsed first.
OptionalformatFormats the human-readable error message from typed data.
OptionalhttpOptional HTTP status associated with this error.
Stable error identifier.
OptionalmetaOptional metadata used by docs and tooling.
OptionalparseCustom parser paired with serialize.
OptionalremediationOptional advice on how to fix the error. Appears in the stringified error message after the main message. Can be a static string or a function that receives the error data and returns a string.
OptionalserializeCustom serializer for transport or persistence scenarios.
OptionaltagsTags attached to the error helper.
Declarative error-definition contract.