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. +

+ + Nicolas Dorier beauty + +

+ It doesn't exist. +

+ You can always try navigating back to home. +

diff --git a/BTCPayServer/wwwroot/img/errorpages/404_nicolas.jpg b/BTCPayServer/wwwroot/img/errorpages/404_nicolas.jpg new file mode 100644 index 000000000..20f741998 Binary files /dev/null and b/BTCPayServer/wwwroot/img/errorpages/404_nicolas.jpg differ