From 1e59286d59159f200424cd1dd47ed60e4aedee68 Mon Sep 17 00:00:00 2001 From: Diego Islas Ocampo Date: Tue, 1 Aug 2017 15:38:31 -0500 Subject: [PATCH] Update error pages --- .htaccess | 20 ++++---------- error/400.html | 54 ++++++++++++++++++++++++-------------- error/401.html | 54 ++++++++++++++++++++++++-------------- error/403.html | 63 +++++++++++++++++++++++++------------------- error/404.html | 65 +++++++++++++++++++++++++-------------------- error/405.html | 56 +++++++++++++++++++++++++++++++++++++++ error/408.html | 56 +++++++++++++++++++++++++++++++++++++++ error/429.html | 56 +++++++++++++++++++++++++++++++++++++++ error/500.html | 61 +++++++++++++++++++++++++------------------ error/503.html | 56 +++++++++++++++++++++++++++++++++++++++ error/error.html | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 473 insertions(+), 136 deletions(-) create mode 100644 error/405.html create mode 100644 error/408.html create mode 100644 error/429.html create mode 100644 error/503.html create mode 100755 error/error.html diff --git a/.htaccess b/.htaccess index 0724b0b..99c61e6 100755 --- a/.htaccess +++ b/.htaccess @@ -57,28 +57,18 @@ Header set X-Frame-Options DENY # Disable server signature ServerSignature Off -# ---------------------------------------------------------------------- -# Make the index handle all Request's -# ---------------------------------------------------------------------- - - - RewriteEngine On - RewriteBase / - RewriteCond %{REQUEST_URI} ^system.* - RewriteRule ^(.*)$ /index.php?/$1 [L] - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^(.*)$ index.php?/$1 [L] - - # ---------------------------------------------------------------------- # Error Documents # ---------------------------------------------------------------------- ErrorDocument 400 /error/400.html ErrorDocument 401 /error/401.html -ErrorDocument 404 /error/404.html ErrorDocument 403 /error/403.html +ErrorDocument 404 /error/404.html +ErrorDocument 405 /error/405.html +ErrorDocument 408 /error/408.html +ErrorDocument 429 /error/429.html ErrorDocument 500 /error/500.html +ErrorDocument 503 /error/503.html # ---------------------------------------------------------------------- # Enable Gzip diff --git a/error/400.html b/error/400.html index 8643d9d..5e217e8 100755 --- a/error/400.html +++ b/error/400.html @@ -4,39 +4,53 @@ Bad Request - - + +

Bad Request

-

The request is invalid.

+

The received request is invalid or malformed.

+
\ No newline at end of file diff --git a/error/401.html b/error/401.html index 608b8b9..4a76307 100755 --- a/error/401.html +++ b/error/401.html @@ -2,41 +2,55 @@ - Authentication Required - - + +

Authentication Required

-

Sorry, the content you are trying to access requires user's authentication.

+

Sorry, the content you are trying to access requires credentials authentication.

+
\ No newline at end of file diff --git a/error/403.html b/error/403.html index ec51fdc..fd1a4ad 100755 --- a/error/403.html +++ b/error/403.html @@ -1,47 +1,56 @@ - - Forbidden - - - + - -

Accessing Forbidden Content

-

Sorry, the content you are trying to access is forbidden.

- +
+

Accesing Forbidden Content

+

Sorry, the content you are trying to access is forbidden.

+
- \ No newline at end of file diff --git a/error/404.html b/error/404.html index 349fe59..fa6542e 100755 --- a/error/404.html +++ b/error/404.html @@ -1,47 +1,56 @@ - - - Page not Found - + Page Not Found - - + - -

Page not Found

-

Sorry, the page you are trying to access does not exist.

- +
+

Page Not Found

+

Sorry, the page you are trying to access does not exist.

+
- \ No newline at end of file diff --git a/error/405.html b/error/405.html new file mode 100644 index 0000000..3fc9e92 --- /dev/null +++ b/error/405.html @@ -0,0 +1,56 @@ + + + + + Method Not Allowed + + + + + + +
+

Method Not Allowed

+

The request method is not allowed for the requested resource.

+
+ + \ No newline at end of file diff --git a/error/408.html b/error/408.html new file mode 100644 index 0000000..f1dd63e --- /dev/null +++ b/error/408.html @@ -0,0 +1,56 @@ + + + + + Request Timeout + + + + + + +
+

Request Timeout

+

The server timed out waiting for the request.

+
+ + \ No newline at end of file diff --git a/error/429.html b/error/429.html new file mode 100644 index 0000000..4f5a8ff --- /dev/null +++ b/error/429.html @@ -0,0 +1,56 @@ + + + + + Too Many Requests + + + + + + +
+

Too Many Requests

+

Sorry, the user has sent too many requests in a given amount of time.

+
+ + \ No newline at end of file diff --git a/error/500.html b/error/500.html index 78d7e97..9103e72 100755 --- a/error/500.html +++ b/error/500.html @@ -1,47 +1,56 @@ - - Server Error - - - + - +

Server Error

-

Sorry, it seems there's been an error. Please try later.

- +

Sorry, it seems there's been an error. Please try later.

+
- \ No newline at end of file diff --git a/error/503.html b/error/503.html new file mode 100644 index 0000000..3d3bb73 --- /dev/null +++ b/error/503.html @@ -0,0 +1,56 @@ + + + + + Service Unavailable + + + + + + +
+

Service Unavailable

+

Sorry, the server is currently unavailable or under mantainance, try again later.

+
+ + \ No newline at end of file diff --git a/error/error.html b/error/error.html new file mode 100755 index 0000000..5f7f46a --- /dev/null +++ b/error/error.html @@ -0,0 +1,68 @@ + + + + + Error Title + + + + + + +
+

Error Title

+

Error Description

+
+

Error Details: Some details

+
+
+ + \ No newline at end of file