Add custom ErrorDocuments

This commit is contained in:
Sophie Marie 2023-03-01 11:19:45 -06:00
parent 8a67ef29a5
commit 5a1858cf00
Signed by: IDeletedSystem64
GPG Key ID: F5D997A1BEF778ED
10 changed files with 161 additions and 0 deletions

18
err/400.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>System64.dev - Error</title>
<link rel="stylesheet" type="text/css" href="/err/styles.css">
<link rel="icon" type="image/x-icon" href="/err/img/favicon.png">
</head>
<body>
<div>
<img src="/img/fail_glitch.webp" alt="Glitched looking Warning icon">
<h1>400 - Bad Request</h1>
<p>Your request cannot be processed at this time.</p>
<p class="tiny">This error has been logged, If this keeps happening contact the webmaster.</p>
<input type="button" onclick="location.href='https://system64.dev'";" value="Go home">
</div>
</body>
</html>

17
err/403.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>System64.dev - Error</title>
<link rel="stylesheet" type="text/css" href="/err/styles.css">
<link rel="icon" type="image/x-icon" href="/err/img/favicon.png">
</head>
<body>
<div>
<img src="/img/fail_glitch.webp" alt="Glitched looking Warning icon">
<h1>403 - Access Forbidden.</h1>
<p>You do not have permission to access this page.</p>
<input type="button" onclick="location.href='https://system64.dev'";" value="Go home">
</div>
</body>
</html>

18
err/404.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>System64.dev - Error</title>
<link rel="stylesheet" type="text/css" href="/err/styles.css">
<link rel="icon" type="image/x-icon" href="/err/img/favicon.png">
</head>
<body>
<div>
<img src="/img/error_glitch.webp" alt="Glitched looking Warning icon">
<h1>404 - Not Found</h1>
<p>Great and Powerful unicorns behind curtains! That page couldn't be found on the server!</p>
<p class="tiny">Expecting something here? It may have been moved or is simply missing.</p>
<input type="button" onclick="location.href='https://system64.dev'";" value="Go home">
</div>
</body>
</html>

18
err/429.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>System64.dev - Error</title>
<link rel="stylesheet" type="text/css" href="/err/styles.css">
<link rel="icon" type="image/x-icon" href="/err/img/favicon.png">
</head>
<body>
<div>
<img src="/img/error_glitch.webp" alt="Glitched looking Warning icon">
<h1>429 - Too many requests</h1>
<p>Chill down there pardner! You're being ratelimited!</p>
<p class="tiny">Ratelimits don't last very long, Check back later.</p>
<input type="button" onclick="location.href='https://system64.dev'";" value="Go home">
</div>
</body>
</html>

18
err/502.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>System64.dev - Error</title>
<link rel="stylesheet" type="text/css" href="/err/styles.css">
<link rel="icon" type="image/x-icon" href="/err/img/favicon.png">
</head>
<body>
<div>
<img src="/img/fail_glitch.webp" alt="Glitched looking Warning icon">
<h1>502 - Bad Gateway</h1>
<p>The server sent an invalid response.</p>
<p class="tiny">This error has been logged, If this keeps happening contact the webmaster.</p>
<input type="button" onclick="location.href='https://system64.dev'";" value="Go home">
</div>
</body>
</html>

18
err/503.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>System64.dev - Error</title>
<link rel="stylesheet" type="text/css" href="/err/styles.css">
<link rel="icon" type="image/x-icon" href="/err/img/favicon.png">
</head>
<body>
<div>
<img src="/img/fail_glitch.webp" alt="Glitched looking Warning icon">
<h1>503 - Service Unavailable</h1>
<p>The server is not ready to process this request.</p>
<p class="tiny">The server may be down for maintenance, or is currently overloaded. Nonetheless, This error has been recorded.</p>
<input type="button" onclick="location.href='https://system64.dev'";" value="Go home">
</div>
</body>
</html>

54
err/styles.css Normal file
View File

@ -0,0 +1,54 @@
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@600&display=swap');
html,body {
height: 100%;
}
h1 {
font-family: 'Bitter', serif;
color: white;
font-size: 50px;
text-align: center;
}
p {
font-family: 'Bitter', serif;
color: white;
text-align: center;
float: bottom;
}
p.tiny {
font-family: 'Bitter', serif;
color: white;
font-size: 12px;
text-align: center;
float: bottom;
}
body {
background: linear-gradient(45deg, rgb(0, 14, 55), rgb(2, 0, 136));
background-repeat: no-repeat;
height: 100%;
}
div {
margin-top: auto;
display: block;
}
img {
width: 20%;
display: block;
margin-left: auto;
margin-right: auto;
}
input {
-webkit-appearance: none;
margin-left: auto;
margin-right: auto;
display: block;
min-width: 250px;
background: #dad9d9;
font-size: 170%;
font-family: 'Share Tech Mono', monospace;
color: black;
box-shadow: inset -0.05em -0.05em black
}

BIN
img/error_glitch.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

BIN
img/fail_glitch.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

BIN
img/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B