OptionalabortOptionalerrorCustom error formatter. Receives the array of errors and returns the response body.
Default: returns { errors: [...] }
OptionalonCustom error handler. If provided, called instead of sending automatic response. Allows full control over error handling (e.g., pass to next(err)).
OptionalstatusHTTP status code for validation errors. Default: 422.
If true, abort on first error. If false, collect all errors. Default: false (collect all)