• Combines a list of errors into a single HttpErrors. Status code depends on the input errors. If they all share the same status code that code will be re-used. If they are all within the 4xx range, 400 will be used, otherwise 500.

    Parameters

    • errors: Error[]

      Errors to combine.

    • messagePrefix: string = 'No handler supports the given input:'

      Prefix for the aggregate error message. Will be followed with an array of all the messages.

    Returns HttpError