Function createAggregateError

  • Combines a list of errors into a single HttpError. 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.

    Returns HttpError