diff --git a/BTCPayServer/Controllers/ErrorController.cs b/BTCPayServer/Controllers/ErrorController.cs index b41232480..1262a7140 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, 429, 500 }; + var specialPages = new[] { 404, 417, 429, 500, 502 }; if (specialPages.Any(a => a == statusCode.Value)) { var viewName = statusCode.ToString(); diff --git a/BTCPayServer/Views/Error/417.cshtml b/BTCPayServer/Views/Error/417.cshtml new file mode 100644 index 000000000..f3f9d5d1f --- /dev/null +++ b/BTCPayServer/Views/Error/417.cshtml @@ -0,0 +1,37 @@ +@{ + ViewData["Title"] = "417 - Expectation Failed"; +} + +
+ You've unfortunately failed expecations of manager Pavlenex. Poor you.
+
+
+
+
+
+ Check your request `Except` header and do better.
+