title: app.UseStatusCodePagesWithReExecute("/Error/{0}"); not working in ASP.NET Core 2.2
body: <p>I put it in the Startup.cs's Configure method</p>
  
  <pre><code>        app.UseMvc();
  
          app.UseStatusCodePagesWithReExecute("/Error/{0}");
  </code></pre>
  
  <p>Then I created a controller like this:</p>
  
  <pre><code>[Route("Error/{statusCode}")]
      public IActionResult HandleErrorCode(int statusCode)
      {
          var statusCodeData = HttpContext.Features.Get&lt;IStatusCodeReExecuteFeature&gt;();
  
          switch (statusCode)
          {
              case 404:
                  ViewBag.ErrorMessage = "Sorry the page you requested could not be found";
                  ViewBag.RouteOfException = statusCodeData.OriginalPath;
                  break;
              case 500:
                  ViewBag.ErrorMessage = "Sorry something went wrong on the server";
                  ViewBag.RouteOfException = statusCodeData.OriginalPath;
                  break;
          }
  
          return View();
      }
  </code></pre>
  
  <p>When I navigate to localhost:port/doesnt-exist</p>
  
  <p>Sigh ... I get a blank page.</p>