diff --git a/BTCPayServer/Controllers/ErrorController.cs b/BTCPayServer/Controllers/ErrorController.cs index 1262a7140..94b5b7aca 100644 --- a/BTCPayServer/Controllers/ErrorController.cs +++ b/BTCPayServer/Controllers/ErrorController.cs @@ -13,7 +13,7 @@ namespace BTCPayServer.Controllers { if (statusCode.HasValue) { - var specialPages = new[] { 404, 417, 429, 500, 502 }; + var specialPages = new[] { 404, 406, 417, 429, 500, 502 }; if (specialPages.Any(a => a == statusCode.Value)) { var viewName = statusCode.ToString(); diff --git a/BTCPayServer/Views/Error/406.cshtml b/BTCPayServer/Views/Error/406.cshtml new file mode 100644 index 000000000..927d88a66 --- /dev/null +++ b/BTCPayServer/Views/Error/406.cshtml @@ -0,0 +1,22 @@ +@{ + Layout = "_LayoutError"; + ViewData["Title"] = "406 - Not Acceptable"; +} + +Sorry, but our server can't service you.
+Either set proper `Accept` header in HTTP request or find a new server. +

+ + Jack guiding you on what's acceptable + +

+ + + + + + + Jack invites you to learn how Bitcoin fixes this™ + + + diff --git a/BTCPayServer/wwwroot/img/errorpages/406_jack.jpg b/BTCPayServer/wwwroot/img/errorpages/406_jack.jpg new file mode 100644 index 000000000..17fd5d76e Binary files /dev/null and b/BTCPayServer/wwwroot/img/errorpages/406_jack.jpg differ