mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 10:30:47 +01:00
Http error 417, page for Pavlenex
This commit is contained in:
parent
7147dadb2a
commit
a662b6ef6a
3 changed files with 38 additions and 1 deletions
|
@ -13,7 +13,7 @@ namespace BTCPayServer.Controllers
|
||||||
{
|
{
|
||||||
if (statusCode.HasValue)
|
if (statusCode.HasValue)
|
||||||
{
|
{
|
||||||
var specialPages = new[] { 404, 429, 500 };
|
var specialPages = new[] { 404, 417, 429, 500, 502 };
|
||||||
if (specialPages.Any(a => a == statusCode.Value))
|
if (specialPages.Any(a => a == statusCode.Value))
|
||||||
{
|
{
|
||||||
var viewName = statusCode.ToString();
|
var viewName = statusCode.ToString();
|
||||||
|
|
37
BTCPayServer/Views/Error/417.cshtml
Normal file
37
BTCPayServer/Views/Error/417.cshtml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
@{
|
||||||
|
ViewData["Title"] = "417 - Expectation Failed";
|
||||||
|
}
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 col-head" style="justify-content:center; flex-direction: row; display:flex; flex-direction:row; text-align:center;">
|
||||||
|
<a asp-controller="Home" asp-action="Index">
|
||||||
|
<img src="~/img/btcpay-logo.svg" alt="BTCPay Server" class="head-logo" height="70" asp-append-version="true" />
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<h1 class="text-uppercase mt-3 ml-4">@ViewData["Title"]</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<hr class="primary" />
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<p class="lead text-center">
|
||||||
|
You've unfortunately failed expecations of manager <a href="https://twitter.com/pavlenex" target="_blank">Pavlenex</a>. Poor you.
|
||||||
|
<br /><br />
|
||||||
|
<a href="https://twitter.com/pavlenex" target="_blank">
|
||||||
|
<img src="~/img/errorpages/417_pavlenex.png" alt="Pavelnex avatar" title="Pavlenex fightning the system, while building better systems" asp-append-version="true" />
|
||||||
|
</a>
|
||||||
|
<br /><br />
|
||||||
|
Check your request `Except` header and do better.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<hr class="primary" />
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<div class="row justify-content-center mt-5">
|
||||||
|
<div class="col">
|
||||||
|
<partial name="_BTCPaySupporters" />
|
||||||
|
</div>
|
||||||
|
</div>
|
BIN
BTCPayServer/wwwroot/img/errorpages/417_pavlenex.png
Normal file
BIN
BTCPayServer/wwwroot/img/errorpages/417_pavlenex.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
Loading…
Add table
Reference in a new issue