Throw 403/412 when using ajax as appropriate
Added error pages
This commit is contained in:
5
views/errors/403.php
Normal file
5
views/errors/403.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Oops!</h1>
|
||||
<h2>403 Not Found or Not Authorised?</h2>
|
||||
<div class="error-details">
|
||||
Sorry, either the item doesnt exist, or you are not authorised to see it.
|
||||
</div>
|
5
views/errors/404.php
Normal file
5
views/errors/404.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Oops!</h1>
|
||||
<h2>404 Not Found?</h2>
|
||||
<div class="error-details">
|
||||
Sorry, an error has occured, requested page not found?
|
||||
</div>
|
5
views/errors/412.php
Normal file
5
views/errors/412.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Oops!</h1>
|
||||
<h2>412 Unable to fulfil your request?</h2>
|
||||
<div class="error-details">
|
||||
Your request needs more information before it can be fulfilled.
|
||||
</div>
|
6
views/errors/501.php
Normal file
6
views/errors/501.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Oops!</h1>
|
||||
<h2>501 Bother, something went wrong.</h2>
|
||||
<?php echo $message; ?>
|
||||
<div class="error-details">
|
||||
If this keeps happening, please let us know.
|
||||
</div>
|
Reference in New Issue
Block a user