Add error docs
This commit is contained in:
parent
46851274a9
commit
22e194ab7b
15
.htaccess
Normal file
15
.htaccess
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# vim:ft=apache:
|
||||||
|
ErrorDocument 400 /errors/400.php
|
||||||
|
ErrorDocument 401 /errors/401.php
|
||||||
|
ErrorDocument 403 /errors/403.php
|
||||||
|
ErrorDocument 404 /errors/404.php
|
||||||
|
ErrorDocument 410 /errors/410.php
|
||||||
|
ErrorDocument 414 /errors/414.php
|
||||||
|
ErrorDocument 500 /errors/500.php
|
||||||
|
|
||||||
|
RedirectMatch 404 /\.git
|
||||||
|
RedirectMatch 404 /\.templates
|
||||||
|
RedirectMatch 404 /src
|
||||||
|
RedirectMatch 404 /README.md
|
||||||
|
RedirectMatch 404 /LICENSE
|
||||||
|
RedirectMatch 404 /*.sh
|
26
errors/400.php
Normal file
26
errors/400.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
<link href="/errors/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||||
|
<title>400 Bad Request</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||||
|
<div class="content">
|
||||||
|
<div class="section">
|
||||||
|
<pre>
|
||||||
|
___ ___
|
||||||
|
|__ \__ _|__ \
|
||||||
|
/ /\ \ /\ / / / /
|
||||||
|
|_| \ V V / |_|
|
||||||
|
(_) \_/\_/ (_)
|
||||||
|
</pre>
|
||||||
|
<h1>400</h1>
|
||||||
|
<p>You done fucked up, Aaron</p>
|
||||||
|
<p>Your browser sent an invalid request. Try again. If this keeps happening, contact the site administrator.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
|
||||||
|
</body>
|
||||||
|
</html>
|
26
errors/401.php
Normal file
26
errors/401.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
<link href="/errors/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||||
|
<title>401 Unauthorized</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||||
|
<div class="content">
|
||||||
|
<div class="section">
|
||||||
|
<pre>
|
||||||
|
/\/| /\/|
|
||||||
|
|/\/_ _|/\/
|
||||||
|
\ \ /\ / /
|
||||||
|
\ V V /
|
||||||
|
\_/\_/
|
||||||
|
</pre>
|
||||||
|
<h1>401</h1>
|
||||||
|
<p>You're not authorized to access this resource.</p>
|
||||||
|
<p>If you think this is in error, contact the site administrator.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
|
||||||
|
</body>
|
||||||
|
</html>
|
26
errors/403.php
Normal file
26
errors/403.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
<link href="/errors/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||||
|
<div class="content">
|
||||||
|
<div class="section">
|
||||||
|
<pre>
|
||||||
|
__ __
|
||||||
|
\ \__ __/ /
|
||||||
|
\ \ \ /\ / / /
|
||||||
|
/ /\ V V /\ \
|
||||||
|
/_/ \_/\_/ \_\
|
||||||
|
</pre>
|
||||||
|
<h1>403</h1>
|
||||||
|
<p>You don't have permission to access this resource.</p>
|
||||||
|
<p>If you think this is in error, contact the site administrator.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
|
||||||
|
</body>
|
||||||
|
</html>
|
26
errors/404.php
Normal file
26
errors/404.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
<link href="/errors/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||||
|
<title>404 Not Found</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||||
|
<div class="content">
|
||||||
|
<div class="section">
|
||||||
|
<pre>
|
||||||
|
|
||||||
|
_____ _____
|
||||||
|
/ _ \ \ /\ / / _ \
|
||||||
|
| __/\ V V / __/
|
||||||
|
\___| \_/\_/ \___|
|
||||||
|
</pre>
|
||||||
|
<h1>404</h1>
|
||||||
|
<p>Yeah, we couldn't find that one. Sorry.</p>
|
||||||
|
<p>Try your request again and, if it keeps happening, contact the site administrator.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
|
||||||
|
</body>
|
||||||
|
</html>
|
25
errors/410.php
Normal file
25
errors/410.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
<link href="/errors/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||||
|
<title>410 Gone</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||||
|
<div class="content">
|
||||||
|
<div class="section">
|
||||||
|
<pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
_ _ _
|
||||||
|
(_|_|_)
|
||||||
|
</pre>
|
||||||
|
<h1>410</h1>
|
||||||
|
<p>Whatever's here isn't anymore.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
|
||||||
|
</body>
|
||||||
|
</html>
|
26
errors/414.php
Normal file
26
errors/414.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
<link href="/errors/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||||
|
<title>414 URI Too Long</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||||
|
<div class="content">
|
||||||
|
<div class="section">
|
||||||
|
<pre>
|
||||||
|
|
||||||
|
_____ _____ ___ ___ ___ ___ ___ ___ ___ ___ ___
|
||||||
|
/ _ \ \ /\ / / _ \ / _ \ / _ \ / _ \ / _ \ / _ \ / _ \ / _ \ / _ \ / _ \
|
||||||
|
| (_) \ V V / (_) | (_) | (_) | (_) | (_) | (_) | (_) | (_) | (_) | (_) |
|
||||||
|
\___/ \_/\_/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \___/
|
||||||
|
</pre>
|
||||||
|
<h1>414</h1>
|
||||||
|
<p>The request you sent had a URI that was waaaaayy too long.</p>
|
||||||
|
<p>I mean just look at the URL in your URL bar. It's huge.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
|
||||||
|
</body>
|
||||||
|
</html>
|
26
errors/500.php
Normal file
26
errors/500.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
<link href="/errors/styles/styles.css" type="text/css" rel="stylesheet" />
|
||||||
|
<title>500 Internal Server Error</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
|
||||||
|
<div class="content">
|
||||||
|
<div class="section">
|
||||||
|
<pre>
|
||||||
|
____ ____
|
||||||
|
/ __ \__ __/ __ \
|
||||||
|
/ / _` \ \ /\ / / / _` |
|
||||||
|
| | (_| |\ V V / | (_| |
|
||||||
|
\ \__,_| \_/\_/ \ \__,_|
|
||||||
|
\____/ \____/
|
||||||
|
</pre>
|
||||||
|
<h1>500</h1>
|
||||||
|
<p>Something bad happened. Contact the site administrator and mention the error "500", the URL you tried to access, and the time it happened.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
|
||||||
|
</body>
|
||||||
|
</html>
|
11
errors/styles/styles.css
Normal file
11
errors/styles/styles.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* styles.css
|
||||||
|
* Copyright (C) 2020 Vintage Salt
|
||||||
|
*
|
||||||
|
* Distributed under terms of the MIT license.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* GLOBALS */
|
||||||
|
.content h1 {
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user