Setu-TS
    Preparing search index...

    Function validationError

    • 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.

      Parameters

      • errors: readonly ValidationError[]

        The validation failures that caused this error

      • Optionalmessage: string

        Optional custom message (defaults to a count-based summary)

      Returns HttpError

      A 422 HttpError

      0.1.0