diff --git a/BTCPayServer/Controllers/ErrorController.cs b/BTCPayServer/Controllers/ErrorController.cs index 29a02b9e7..1113aa6da 100644 --- a/BTCPayServer/Controllers/ErrorController.cs +++ b/BTCPayServer/Controllers/ErrorController.cs @@ -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); } } diff --git a/BTCPayServer/Views/Error/404.cshtml b/BTCPayServer/Views/Error/404.cshtml new file mode 100644 index 000000000..845f9eaae --- /dev/null +++ b/BTCPayServer/Views/Error/404.cshtml @@ -0,0 +1,15 @@ +@{ + ViewData["ErrorTitle"] = "404 - Page not found"; +} + +
+ This is like searching for person more beautiful than Nicolas Dorier.
+
+
+
+
+
+ It doesn't exist.
+
+ You can always try navigating back to home.
+