Skip to content

Instantly share code, notes, and snippets.

@4piu
Last active April 26, 2020 04:38
Show Gist options
  • Save 4piu/c5a7c65436a30470a986e689f0497d7e to your computer and use it in GitHub Desktop.
Save 4piu/c5a7c65436a30470a986e689f0497d7e to your computer and use it in GitHub Desktop.
Windows 10 BSoD Theme Error Page
<!--
Example config for Nginx:
server {
# ...
error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 500 501 502 503 504 505 506 507 508 509 510 511 /error.html;
location /error.html {
ssi on;
internal;
auth_basic off;
}
}
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no" name="viewport">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<title><!--# echo var="status" default="Error" --></title>
<style type="text/css">
body {
background: #0078d7;
min-width: 200px;
}
#wrapper {
margin-left: 10%;
margin-right: 10%;
margin-top: 10%;
max-width: 1024px;
font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
}
#u2639 {
margin: 0.5rem;
}
#info {
color: #ffffff;
font-size: 2rem;
font-weight: lighter;
line-height: 150%;
-webkit-text-stroke: 0.04rem #fff;
margin: 0.5rem;
}
#support {
color: #ffffff;
font-weight: lighter;
font-size: 1.1rem;
display: flex;
position: relative;
margin: 0.5rem;
}
#support-text-secondary {
font-size: 0.8rem;
position: absolute;
bottom: 0;
}
#support svg {
margin: 0 1rem 0 0;
}
#support p {
margin: 0;
}
#support svg g {
fill: #0078d7;
}
a {
color: inherit;
}
@media (max-width: 600px) {
#info {
font-size: 1.5rem;
}
#support {
display: none;
}
}
</style>
</head>
<body>
<div id="wrapper">
<div id="u2639">
<svg width="80" height="156.85" version="1.1" viewBox="0 0 21.167 41.499" xmlns="http://www.w3.org/2000/svg"><g transform="translate(-20.411 -246.96)" fill="#fff"><g id="colon" transform="matrix(.14814 0 0 .14814 17.387 245.72)" stroke-width=".25857"><circle cx="36.664" cy="84.955" r="16.253"/><circle cx="37.042" cy="224.43" r="16.253"/></g><path id="bracket" d="m38.214 287.67c-2.7607-3.4448-4.8626-8.262-5.7937-13.279-0.74735-4.0264-0.80616-8.718-0.15914-12.695 0.84261-5.1792 2.9503-10.086 5.8963-13.727l0.76992-0.95149 2.6502-0.0634-0.29243 0.36767c-0.55351 0.69591-2.0554 2.945-2.5639 3.8393-2.1984 3.8667-3.5711 7.9173-4.1971 12.384-0.27395 1.955-0.27247 6.3568 0.0028 8.2215 0.549 3.7193 1.5013 6.8765 3.0553 10.129 0.88997 1.8628 2.1774 4.0343 3.196 5.3908 0.42475 0.56562 0.75802 1.0424 0.7406 1.0594-0.01742 0.017-0.62679 0.0481-1.3542 0.069l-1.3225 0.038z" stroke-width=".11199"/></g></svg>
</div>
<div id="info">
<p>
The website ran into a problem. We apologize for the inconvenience.
</p>
<p id="info-error-code">
</p>
</div>
<div id="support">
<svg width="96px" height="96px" viewBox="0 0 296 296" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect fill="#ffffff" height="296" width="296" x="0" y="0"/><defs><rect height="8" id="p" width="8"/></defs><g fill="#000000"><use x="32" xlink:href="#p" y="32"/><use x="32" xlink:href="#p" y="40"/><use x="32" xlink:href="#p" y="48"/><use x="32" xlink:href="#p" y="56"/><use x="32" xlink:href="#p" y="64"/><use x="32" xlink:href="#p" y="72"/><use x="32" xlink:href="#p" y="80"/><use x="32" xlink:href="#p" y="104"/><use x="32" xlink:href="#p" y="128"/><use x="32" xlink:href="#p" y="136"/><use x="32" xlink:href="#p" y="144"/><use x="32" xlink:href="#p" y="152"/><use x="32" xlink:href="#p" y="208"/><use x="32" xlink:href="#p" y="216"/><use x="32" xlink:href="#p" y="224"/><use x="32" xlink:href="#p" y="232"/><use x="32" xlink:href="#p" y="240"/><use x="32" xlink:href="#p" y="248"/><use x="32" xlink:href="#p" y="256"/><use x="40" xlink:href="#p" y="32"/><use x="40" xlink:href="#p" y="80"/><use x="40" xlink:href="#p" y="120"/><use x="40" xlink:href="#p" y="168"/><use x="40" xlink:href="#p" y="176"/><use x="40" xlink:href="#p" y="184"/><use x="40" xlink:href="#p" y="192"/><use x="40" xlink:href="#p" y="208"/><use x="40" xlink:href="#p" y="256"/><use x="48" xlink:href="#p" y="32"/><use x="48" xlink:href="#p" y="48"/><use x="48" xlink:href="#p" y="56"/><use x="48" xlink:href="#p" y="64"/><use x="48" xlink:href="#p" y="80"/><use x="48" xlink:href="#p" y="96"/><use x="48" xlink:href="#p" y="112"/><use x="48" xlink:href="#p" y="120"/><use x="48" xlink:href="#p" y="128"/><use x="48" xlink:href="#p" y="144"/><use x="48" xlink:href="#p" y="152"/><use x="48" xlink:href="#p" y="184"/><use x="48" xlink:href="#p" y="192"/><use x="48" xlink:href="#p" y="208"/><use x="48" xlink:href="#p" y="224"/><use x="48" xlink:href="#p" y="232"/><use x="48" xlink:href="#p" y="240"/><use x="48" xlink:href="#p" y="256"/><use x="56" xlink:href="#p" y="32"/><use x="56" xlink:href="#p" y="48"/><use x="56" xlink:href="#p" y="56"/><use x="56" xlink:href="#p" y="64"/><use x="56" xlink:href="#p" y="80"/><use x="56" xlink:href="#p" y="96"/><use x="56" xlink:href="#p" y="120"/><use x="56" xlink:href="#p" y="128"/><use x="56" xlink:href="#p" y="136"/><use x="56" xlink:href="#p" y="152"/><use x="56" xlink:href="#p" y="168"/><use x="56" xlink:href="#p" y="184"/><use x="56" xlink:href="#p" y="208"/><use x="56" xlink:href="#p" y="224"/><use x="56" xlink:href="#p" y="232"/><use x="56" xlink:href="#p" y="240"/><use x="56" xlink:href="#p" y="256"/><use x="64" xlink:href="#p" y="32"/><use x="64" xlink:href="#p" y="48"/><use x="64" xlink:href="#p" y="56"/><use x="64" xlink:href="#p" y="64"/><use x="64" xlink:href="#p" y="80"/><use x="64" xlink:href="#p" y="96"/><use x="64" xlink:href="#p" y="112"/><use x="64" xlink:href="#p" y="120"/><use x="64" xlink:href="#p" y="128"/><use x="64" xlink:href="#p" y="152"/><use x="64" xlink:href="#p" y="176"/><use x="64" xlink:href="#p" y="184"/><use x="64" xlink:href="#p" y="192"/><use x="64" xlink:href="#p" y="208"/><use x="64" xlink:href="#p" y="224"/><use x="64" xlink:href="#p" y="232"/><use x="64" xlink:href="#p" y="240"/><use x="64" xlink:href="#p" y="256"/><use x="72" xlink:href="#p" y="32"/><use x="72" xlink:href="#p" y="80"/><use x="72" xlink:href="#p" y="104"/><use x="72" xlink:href="#p" y="120"/><use x="72" xlink:href="#p" y="136"/><use x="72" xlink:href="#p" y="152"/><use x="72" xlink:href="#p" y="176"/><use x="72" xlink:href="#p" y="184"/><use x="72" xlink:href="#p" y="192"/><use x="72" xlink:href="#p" y="208"/><use x="72" xlink:href="#p" y="256"/><use x="80" xlink:href="#p" y="32"/><use x="80" xlink:href="#p" y="40"/><use x="80" xlink:href="#p" y="48"/><use x="80" xlink:href="#p" y="56"/><use x="80" xlink:href="#p" y="64"/><use x="80" xlink:href="#p" y="72"/><use x="80" xlink:href="#p" y="80"/><use x="80" xlink:href="#p" y="96"/><use x="80" xlink:href="#p" y="112"/><use x="80" xlink:href="#p" y="128"/><use x="80" xlink:href="#p" y="144"/><use x="80" xlink:href="#p" y="160"/><use x="80" xlink:href="#p" y="176"/><use x="80" xlink:href="#p" y="192"/><use x="80" xlink:href="#p" y="208"/><use x="80" xlink:href="#p" y="216"/><use x="80" xlink:href="#p" y="224"/><use x="80" xlink:href="#p" y="232"/><use x="80" xlink:href="#p" y="240"/><use x="80" xlink:href="#p" y="248"/><use x="80" xlink:href="#p" y="256"/><use x="88" xlink:href="#p" y="104"/><use x="88" xlink:href="#p" y="112"/><use x="88" xlink:href="#p" y="136"/><use x="88" xlink:href="#p" y="160"/><use x="88" xlink:href="#p" y="168"/><use x="88" xlink:href="#p" y="192"/><use x="96" xlink:href="#p" y="32"/><use x="96" xlink:href="#p" y="40"/><use x="96" xlink:href="#p" y="48"/><use x="96" xlink:href="#p" y="72"/><use x="96" xlink:href="#p" y="80"/><use x="96" xlink:href="#p" y="88"/><use x="96" xlink:href="#p" y="96"/><use x="96" xlink:href="#p" y="104"/><use x="96" xlink:href="#p" y="112"/><use x="96" xlink:href="#p" y="184"/><use x="96" xlink:href="#p" y="200"/><use x="96" xlink:href="#p" y="224"/><use x="96" xlink:href="#p" y="232"/><use x="96" xlink:href="#p" y="240"/><use x="104" xlink:href="#p" y="32"/><use x="104" xlink:href="#p" y="48"/><use x="104" xlink:href="#p" y="128"/><use x="104" xlink:href="#p" y="136"/><use x="104" xlink:href="#p" y="176"/><use x="104" xlink:href="#p" y="192"/><use x="104" xlink:href="#p" y="216"/><use x="104" xlink:href="#p" y="224"/><use x="104" xlink:href="#p" y="232"/><use x="104" xlink:href="#p" y="256"/><use x="112" xlink:href="#p" y="48"/><use x="112" xlink:href="#p" y="80"/><use x="112" xlink:href="#p" y="88"/><use x="112" xlink:href="#p" y="96"/><use x="112" xlink:href="#p" y="104"/><use x="112" xlink:href="#p" y="128"/><use x="112" xlink:href="#p" y="136"/><use x="112" xlink:href="#p" y="152"/><use x="112" xlink:href="#p" y="160"/><use x="112" xlink:href="#p" y="184"/><use x="112" xlink:href="#p" y="192"/><use x="112" xlink:href="#p" y="200"/><use x="112" xlink:href="#p" y="216"/><use x="112" xlink:href="#p" y="232"/><use x="112" xlink:href="#p" y="256"/><use x="120" xlink:href="#p" y="32"/><use x="120" xlink:href="#p" y="40"/><use x="120" xlink:href="#p" y="48"/><use x="120" xlink:href="#p" y="72"/><use x="120" xlink:href="#p" y="88"/><use x="120" xlink:href="#p" y="104"/><use x="120" xlink:href="#p" y="128"/><use x="120" xlink:href="#p" y="144"/><use x="120" xlink:href="#p" y="160"/><use x="120" xlink:href="#p" y="176"/><use x="120" xlink:href="#p" y="184"/><use x="120" xlink:href="#p" y="200"/><use x="120" xlink:href="#p" y="232"/><use x="120" xlink:href="#p" y="248"/><use x="128" xlink:href="#p" y="40"/><use x="128" xlink:href="#p" y="48"/><use x="128" xlink:href="#p" y="56"/><use x="128" xlink:href="#p" y="64"/><use x="128" xlink:href="#p" y="72"/><use x="128" xlink:href="#p" y="80"/><use x="128" xlink:href="#p" y="96"/><use x="128" xlink:href="#p" y="104"/><use x="128" xlink:href="#p" y="112"/><use x="128" xlink:href="#p" y="136"/><use x="128" xlink:href="#p" y="152"/><use x="128" xlink:href="#p" y="160"/><use x="128" xlink:href="#p" y="168"/><use x="128" xlink:href="#p" y="200"/><use x="128" xlink:href="#p" y="224"/><use x="128" xlink:href="#p" y="232"/><use x="128" xlink:href="#p" y="248"/><use x="128" xlink:href="#p" y="256"/><use x="136" xlink:href="#p" y="40"/><use x="136" xlink:href="#p" y="48"/><use x="136" xlink:href="#p" y="56"/><use x="136" xlink:href="#p" y="72"/><use x="136" xlink:href="#p" y="88"/><use x="136" xlink:href="#p" y="96"/><use x="136" xlink:href="#p" y="112"/><use x="136" xlink:href="#p" y="120"/><use x="136" xlink:href="#p" y="136"/><use x="136" xlink:href="#p" y="176"/><use x="136" xlink:href="#p" y="192"/><use x="136" xlink:href="#p" y="208"/><use x="136" xlink:href="#p" y="224"/><use x="136" xlink:href="#p" y="256"/><use x="144" xlink:href="#p" y="40"/><use x="144" xlink:href="#p" y="48"/><use x="144" xlink:href="#p" y="64"/><use x="144" xlink:href="#p" y="80"/><use x="144" xlink:href="#p" y="128"/><use x="144" xlink:href="#p" y="160"/><use x="144" xlink:href="#p" y="200"/><use x="144" xlink:href="#p" y="208"/><use x="152" xlink:href="#p" y="32"/><use x="152" xlink:href="#p" y="88"/><use x="152" xlink:href="#p" y="112"/><use x="152" xlink:href="#p" y="128"/><use x="152" xlink:href="#p" y="160"/><use x="152" xlink:href="#p" y="200"/><use x="152" xlink:href="#p" y="248"/><use x="160" xlink:href="#p" y="32"/><use x="160" xlink:href="#p" y="40"/><use x="160" xlink:href="#p" y="64"/><use x="160" xlink:href="#p" y="80"/><use x="160" xlink:href="#p" y="88"/><use x="160" xlink:href="#p" y="96"/><use x="160" xlink:href="#p" y="120"/><use x="160" xlink:href="#p" y="144"/><use x="160" xlink:href="#p" y="152"/><use x="160" xlink:href="#p" y="160"/><use x="160" xlink:href="#p" y="176"/><use x="160" xlink:href="#p" y="192"/><use x="160" xlink:href="#p" y="208"/><use x="160" xlink:href="#p" y="216"/><use x="160" xlink:href="#p" y="224"/><use x="160" xlink:href="#p" y="232"/><use x="168" xlink:href="#p" y="56"/><use x="168" xlink:href="#p" y="104"/><use x="168" xlink:href="#p" y="120"/><use x="168" xlink:href="#p" y="128"/><use x="168" xlink:href="#p" y="136"/><use x="168" xlink:href="#p" y="152"/><use x="168" xlink:href="#p" y="160"/><use x="168" xlink:href="#p" y="168"/><use x="168" xlink:href="#p" y="176"/><use x="168" xlink:href="#p" y="184"/><use x="168" xlink:href="#p" y="200"/><use x="168" xlink:href="#p" y="216"/><use x="168" xlink:href="#p" y="232"/><use x="168" xlink:href="#p" y="256"/><use x="176" xlink:href="#p" y="32"/><use x="176" xlink:href="#p" y="48"/><use x="176" xlink:href="#p" y="56"/><use x="176" xlink:href="#p" y="64"/><use x="176" xlink:href="#p" y="72"/><use x="176" xlink:href="#p" y="80"/><use x="176" xlink:href="#p" y="96"/><use x="176" xlink:href="#p" y="120"/><use x="176" xlink:href="#p" y="128"/><use x="176" xlink:href="#p" y="160"/><use x="176" xlink:href="#p" y="176"/><use x="176" xlink:href="#p" y="184"/><use x="176" xlink:href="#p" y="216"/><use x="176" xlink:href="#p" y="232"/><use x="184" xlink:href="#p" y="40"/><use x="184" xlink:href="#p" y="48"/><use x="184" xlink:href="#p" y="56"/><use x="184" xlink:href="#p" y="64"/><use x="184" xlink:href="#p" y="96"/><use x="184" xlink:href="#p" y="120"/><use x="184" xlink:href="#p" y="136"/><use x="184" xlink:href="#p" y="152"/><use x="184" xlink:href="#p" y="168"/><use x="184" xlink:href="#p" y="184"/><use x="184" xlink:href="#p" y="192"/><use x="184" xlink:href="#p" y="208"/><use x="184" xlink:href="#p" y="216"/><use x="184" xlink:href="#p" y="232"/><use x="184" xlink:href="#p" y="240"/><use x="184" xlink:href="#p" y="248"/><use x="184" xlink:href="#p" y="256"/><use x="192" xlink:href="#p" y="32"/><use x="192" xlink:href="#p" y="48"/><use x="192" xlink:href="#p" y="56"/><use x="192" xlink:href="#p" y="64"/><use x="192" xlink:href="#p" y="72"/><use x="192" xlink:href="#p" y="80"/><use x="192" xlink:href="#p" y="136"/><use x="192" xlink:href="#p" y="160"/><use x="192" xlink:href="#p" y="192"/><use x="192" xlink:href="#p" y="200"/><use x="192" xlink:href="#p" y="208"/><use x="192" xlink:href="#p" y="216"/><use x="192" xlink:href="#p" y="224"/><use x="192" xlink:href="#p" y="232"/><use x="192" xlink:href="#p" y="240"/><use x="192" xlink:href="#p" y="248"/><use x="200" xlink:href="#p" y="96"/><use x="200" xlink:href="#p" y="112"/><use x="200" xlink:href="#p" y="120"/><use x="200" xlink:href="#p" y="128"/><use x="200" xlink:href="#p" y="136"/><use x="200" xlink:href="#p" y="144"/><use x="200" xlink:href="#p" y="152"/><use x="200" xlink:href="#p" y="168"/><use x="200" xlink:href="#p" y="192"/><use x="200" xlink:href="#p" y="224"/><use x="200" xlink:href="#p" y="232"/><use x="200" xlink:href="#p" y="240"/><use x="200" xlink:href="#p" y="248"/><use x="208" xlink:href="#p" y="32"/><use x="208" xlink:href="#p" y="40"/><use x="208" xlink:href="#p" y="48"/><use x="208" xlink:href="#p" y="56"/><use x="208" xlink:href="#p" y="64"/><use x="208" xlink:href="#p" y="72"/><use x="208" xlink:href="#p" y="80"/><use x="208" xlink:href="#p" y="96"/><use x="208" xlink:href="#p" y="104"/><use x="208" xlink:href="#p" y="112"/><use x="208" xlink:href="#p" y="120"/><use x="208" xlink:href="#p" y="136"/><use x="208" xlink:href="#p" y="144"/><use x="208" xlink:href="#p" y="168"/><use x="208" xlink:href="#p" y="176"/><use x="208" xlink:href="#p" y="184"/><use x="208" xlink:href="#p" y="192"/><use x="208" xlink:href="#p" y="208"/><use x="208" xlink:href="#p" y="224"/><use x="208" xlink:href="#p" y="240"/><use x="208" xlink:href="#p" y="248"/><use x="216" xlink:href="#p" y="32"/><use x="216" xlink:href="#p" y="80"/><use x="216" xlink:href="#p" y="96"/><use x="216" xlink:href="#p" y="112"/><use x="216" xlink:href="#p" y="120"/><use x="216" xlink:href="#p" y="128"/><use x="216" xlink:href="#p" y="144"/><use x="216" xlink:href="#p" y="168"/><use x="216" xlink:href="#p" y="176"/><use x="216" xlink:href="#p" y="192"/><use x="216" xlink:href="#p" y="224"/><use x="216" xlink:href="#p" y="232"/><use x="216" xlink:href="#p" y="240"/><use x="224" xlink:href="#p" y="32"/><use x="224" xlink:href="#p" y="48"/><use x="224" xlink:href="#p" y="56"/><use x="224" xlink:href="#p" y="64"/><use x="224" xlink:href="#p" y="80"/><use x="224" xlink:href="#p" y="104"/><use x="224" xlink:href="#p" y="112"/><use x="224" xlink:href="#p" y="120"/><use x="224" xlink:href="#p" y="136"/><use x="224" xlink:href="#p" y="152"/><use x="224" xlink:href="#p" y="160"/><use x="224" xlink:href="#p" y="168"/><use x="224" xlink:href="#p" y="184"/><use x="224" xlink:href="#p" y="192"/><use x="224" xlink:href="#p" y="200"/><use x="224" xlink:href="#p" y="208"/><use x="224" xlink:href="#p" y="216"/><use x="224" xlink:href="#p" y="224"/><use x="224" xlink:href="#p" y="240"/><use x="224" xlink:href="#p" y="248"/><use x="224" xlink:href="#p" y="256"/><use x="232" xlink:href="#p" y="32"/><use x="232" xlink:href="#p" y="48"/><use x="232" xlink:href="#p" y="56"/><use x="232" xlink:href="#p" y="64"/><use x="232" xlink:href="#p" y="80"/><use x="232" xlink:href="#p" y="112"/><use x="232" xlink:href="#p" y="136"/><use x="232" xlink:href="#p" y="152"/><use x="232" xlink:href="#p" y="160"/><use x="232" xlink:href="#p" y="168"/><use x="232" xlink:href="#p" y="176"/><use x="232" xlink:href="#p" y="192"/><use x="232" xlink:href="#p" y="200"/><use x="232" xlink:href="#p" y="216"/><use x="232" xlink:href="#p" y="224"/><use x="232" xlink:href="#p" y="248"/><use x="232" xlink:href="#p" y="256"/><use x="240" xlink:href="#p" y="32"/><use x="240" xlink:href="#p" y="48"/><use x="240" xlink:href="#p" y="56"/><use x="240" xlink:href="#p" y="64"/><use x="240" xlink:href="#p" y="80"/><use x="240" xlink:href="#p" y="96"/><use x="240" xlink:href="#p" y="104"/><use x="240" xlink:href="#p" y="128"/><use x="240" xlink:href="#p" y="160"/><use x="240" xlink:href="#p" y="168"/><use x="240" xlink:href="#p" y="176"/><use x="240" xlink:href="#p" y="192"/><use x="240" xlink:href="#p" y="224"/><use x="240" xlink:href="#p" y="240"/><use x="248" xlink:href="#p" y="32"/><use x="248" xlink:href="#p" y="80"/><use x="248" xlink:href="#p" y="96"/><use x="248" xlink:href="#p" y="120"/><use x="248" xlink:href="#p" y="128"/><use x="248" xlink:href="#p" y="152"/><use x="248" xlink:href="#p" y="168"/><use x="248" xlink:href="#p" y="184"/><use x="248" xlink:href="#p" y="200"/><use x="248" xlink:href="#p" y="216"/><use x="248" xlink:href="#p" y="240"/><use x="248" xlink:href="#p" y="248"/><use x="256" xlink:href="#p" y="32"/><use x="256" xlink:href="#p" y="40"/><use x="256" xlink:href="#p" y="48"/><use x="256" xlink:href="#p" y="56"/><use x="256" xlink:href="#p" y="64"/><use x="256" xlink:href="#p" y="72"/><use x="256" xlink:href="#p" y="80"/><use x="256" xlink:href="#p" y="96"/><use x="256" xlink:href="#p" y="104"/><use x="256" xlink:href="#p" y="128"/><use x="256" xlink:href="#p" y="136"/><use x="256" xlink:href="#p" y="160"/><use x="256" xlink:href="#p" y="168"/><use x="256" xlink:href="#p" y="184"/><use x="256" xlink:href="#p" y="200"/><use x="256" xlink:href="#p" y="216"/><use x="256" xlink:href="#p" y="224"/></g></svg>
<div>
<p>
For more information about this issue, please visit <a href="https://bit.ly/2SE8iz2" target="_blank">https://bit.ly/2SE8iz2</a>
</p>
<p id="support-text-secondary">
If you call a support person, give them this info:
<br><br>
Error code: <span id="support-text-error-code"></span>
</p>
</div>
</div>
</div>
</body>
<script>
var statusCode = {
// 4XX
400: 'Bad Request',
401: 'Unauthorized',
402: 'Payment Required',
403: 'Forbidden',
404: 'Not Found',
405: 'Method Not Allowed',
406: 'Not Acceptable',
407: 'Proxy Authentication Required',
408: 'Request Timeout',
409: 'Conflict',
410: 'Gone',
411: 'Length Required',
412: 'Precondition Failed',
413: 'Payload Too Large',
414: 'URI Too Long',
415: 'Unsupported Media Type',
416: 'Range Not Satisfiable',
417: 'Expectation Failed',
418: 'I\'m a teapot',
421: 'Misdirected Request',
422: 'Unprocessable Entity',
423: 'Locked',
424: 'Failed Dependency',
425: 'Too Early',
426: 'Upgrade Required',
428: 'Precondition Required',
429: 'Too Many Requests',
431: 'Request Header Fields Too Large',
451: 'Unavailable For Legal Reasons',
//5XX
500: 'Internal Server Error',
501: 'Not Implemented',
502: 'Bad Gateway',
503: 'Service Unavailable',
504: 'Gateway Timeout',
505: 'HTTP Version Not Supported',
506: 'Variant Also Negotiates',
507: 'Insufficient Storage',
508: 'Loop Detected',
510: 'Not Extended',
511: 'Network Authentication Required'
};
window.addEventListener('load', function () {
var status = document.title;
var code = statusCode[status] || 'Non-standard Error';
// document.title = status;
document.getElementById('info-error-code').innerText = status + ' ' + code;
document.getElementById('support-text-error-code').innerText = code.toUpperCase().replace(/\W/g, '_');
})
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment