Special page to handle 404 errors

This commit is contained in:
rockstardev
2020-02-01 01:41:27 -06:00
parent fe2eca4fda
commit ef503fa907
3 changed files with 23 additions and 0 deletions

View File

@@ -12,6 +12,14 @@ namespace BTCPayServer.Controllers
{
public IActionResult Handle(int? statusCode = null)
{
if (statusCode.HasValue)
{
if (statusCode.Value == 404)
{
var viewName = statusCode.ToString();
return View(viewName);
}
}
return View(statusCode);
}
}