Declares the error data schema.
Sets the user-facing message formatter.
Associates an HTTP status code with the error helper.
Attaches metadata used by docs and tooling.
Provides a custom parser paired with serialize.
Attach remediation advice that explains how to fix this error. Appears in the stringified error after the main message.
Alias for dataSchema. Use this to define the error data validation contract.
Provides a custom serializer for transport or persistence scenarios.
Adds or replaces error tags.
Optionaloptions: { override?: boolean }
Materializes the final error helper for registration or reuse.