validationError(errors: readonly ValidationError[],message?: string): HttpError
Creates a 422 Unprocessable Entity error wrapping a list of validation
failures.
The errors array is stored in the error's details.errors so it survives
serialization into both the default and RFC 7807 error bodies.
errors: readonly ValidationError[]
The validation failures that caused this error