diff --git a/BTCPayServer/Controllers/ErrorController.cs b/BTCPayServer/Controllers/ErrorController.cs index 1113aa6da..2bca043f9 100644 --- a/BTCPayServer/Controllers/ErrorController.cs +++ b/BTCPayServer/Controllers/ErrorController.cs @@ -14,7 +14,8 @@ namespace BTCPayServer.Controllers { if (statusCode.HasValue) { - if (statusCode.Value == 404) + var specialPages = new[] { 404, 500 }; + if (specialPages.Any(a => a == statusCode.Value)) { var viewName = statusCode.ToString(); return View(viewName); diff --git a/BTCPayServer/Views/Error/500.cshtml b/BTCPayServer/Views/Error/500.cshtml new file mode 100644 index 000000000..bf014b3f7 --- /dev/null +++ b/BTCPayServer/Views/Error/500.cshtml @@ -0,0 +1,15 @@ +@{ + ViewData["ErrorTitle"] = "500 - Internal Server Error"; +} + +

+ Whoops, something really went wrong! Mr Kukks is so sorry. +

+ + Mr Kukks puppy eyes + +

+ Consult server log and consider submitting issue on BTCPayServer GitHub. +

+ Navigate back to home. +

diff --git a/BTCPayServer/wwwroot/img/errorpages/500_mrkukks.jpg b/BTCPayServer/wwwroot/img/errorpages/500_mrkukks.jpg new file mode 100644 index 000000000..4fd4ef216 Binary files /dev/null and b/BTCPayServer/wwwroot/img/errorpages/500_mrkukks.jpg differ