app.UseStatusCodePagesWithRedirects("~/400.html", 400); app.UseStatusCodePagesWithRedirects("~/500.html", 500);