Skip to content

Commit

Permalink
Add custom ErrorDocuments
Browse files Browse the repository at this point in the history
  • Loading branch information
IDeletedSystem64 committed Mar 1, 2023
1 parent 8a67ef2 commit 5a1858c
Show file tree
Hide file tree
Showing 10 changed files with 161 additions and 0 deletions.
18 changes: 18 additions & 0 deletions err/400.html
Original file line number Diff line number Diff line change
@@ -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 changes: 17 additions & 0 deletions err/403.html
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 0 deletions err/404.html
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 0 deletions err/429.html
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 0 deletions err/502.html
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 0 deletions err/503.html
Original file line number Diff line number Diff line change
@@ -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 changes: 54 additions & 0 deletions err/styles.css
Original file line number Diff line number Diff line change
@@ -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
}
Binary file added img/error_glitch.webp
Binary file not shown.
Binary file added img/fail_glitch.webp
Binary file not shown.
Binary file added img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5a1858c

Please sign in to comment.