mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Http error page 406 for our dear man Jack
Yes, acceptable
This commit is contained in:
parent
ca25eedfbc
commit
dc27ffa6ba
3 changed files with 23 additions and 1 deletions
|
@ -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();
|
||||
|
|
22
BTCPayServer/Views/Error/406.cshtml
Normal file
22
BTCPayServer/Views/Error/406.cshtml
Normal file
|
@ -0,0 +1,22 @@
|
|||
@{
|
||||
Layout = "_LayoutError";
|
||||
ViewData["Title"] = "406 - Not Acceptable";
|
||||
}
|
||||
|
||||
Sorry, but our server can't service you.<br />
|
||||
Either set proper `Accept` header in HTTP request or find a new server.
|
||||
<br /><br />
|
||||
<a href="https://twitter.com/jack" target="_blank">
|
||||
<img src="~/img/errorpages/406_jack.jpg" alt="Jack guiding you on what's acceptable" title="Bitcoin fixes this™" />
|
||||
</a>
|
||||
<br /><br />
|
||||
<span>
|
||||
<svg style="width:30px; height:30px; fill:rgb(81, 177, 62);" viewBox="0 0 24 24">
|
||||
<g><circle cx="12.025" cy="16.437" r="1.281"></circle><path d="M14.39 7.194c-.094-.127-.242-.2-.4-.2h-3.928c-.158 0-.307.073-.4.2-.096.126-.125.29-.08.442l1.814 6.098c.063.212.258.357.48.357h.298c.222 0 .416-.145.48-.356l1.813-6.098c.047-.152.017-.316-.077-.442z"></path><path d="M12 22.75C6.072 22.75 1.25 17.928 1.25 12S6.072 1.25 12 1.25 22.75 6.072 22.75 12 17.928 22.75 12 22.75zm0-20C6.9 2.75 2.75 6.9 2.75 12S6.9 21.25 12 21.25s9.25-4.15 9.25-9.25S17.1 2.75 12 2.75z"></path></g>
|
||||
</svg>
|
||||
<span class="css-901oao css-16my406 css-cens5h r-13gxpu9 r-poiln3 r-bcqeeo r-qvutc0" style="-webkit-line-clamp: 3;">
|
||||
<span class="css-901oao css-16my406 r-poiln3 r-bcqeeo r-qvutc0">
|
||||
<a href="https://twitter.com/jack/status/1108487911802966017">Jack invites you to learn how Bitcoin fixes this™</a>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
BIN
BTCPayServer/wwwroot/img/errorpages/406_jack.jpg
Normal file
BIN
BTCPayServer/wwwroot/img/errorpages/406_jack.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Loading…
Add table
Reference in a new issue