title: How to a I redirect to Custom Error Handler Page
body: <p>I want a generic error page for all application errors.</p>
  
  <p>I have followed the guidelines to create a custom error handler in ASP.NET core and this catches the errors as expected.  However, I cannot see how to redirect to a generic error handling the page.  Examples seemed to be focused on Web API, not UI.
  I have the following custom error handling code</p>
  
  <pre><code>  private static Task HandleExceptionAsync(HttpContext context, Exception exception)
      {
          context.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
  
          int exceptionId = ExceptionManager.Publish(exception);
  
          return context.Response.WriteAsync(new ErrorViewModel()
          {
              ExceptionId = exceptionId
          }.ToString());
      }
  </code></pre>
  
  <p>The exception details are logged to a database and return an Id.  I have a controller action that displays the Id so the users can report it.</p>
  
  <p>How do I redirect to my error view?</p>