From 16cbcce87248fc0c13b4d99a3c796a27323c22a6 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 13 Mar 2013 22:49:08 +0800 Subject: Bug 850546: Add custom 401,403,404, and 500 pages --- .htaccess | 4 ++++ errors/401.html | 40 ++++++++++++++++++++++++++++++++++++++++ errors/403.html | 37 +++++++++++++++++++++++++++++++++++++ errors/404.html | 37 +++++++++++++++++++++++++++++++++++++ errors/500.html | 37 +++++++++++++++++++++++++++++++++++++ images/buggie.png | Bin 0 -> 17002 bytes 6 files changed, 155 insertions(+) create mode 100644 errors/401.html create mode 100644 errors/403.html create mode 100644 errors/404.html create mode 100644 errors/500.html create mode 100644 images/buggie.png diff --git a/.htaccess b/.htaccess index 36c380c7d..333dde2a5 100644 --- a/.htaccess +++ b/.htaccess @@ -25,6 +25,10 @@ AddType image/x-icon .ico +ErrorDocument 401 /errors/401.html +ErrorDocument 403 /errors/403.html +ErrorDocument 404 /errors/404.html +ErrorDocument 500 /errors/500.html Redirect permanent /queryhelp.cgi https://bugzilla.mozilla.org/query.cgi?format=advanced&help=1 Redirect permanent /bug_status.html https://bugzilla.mozilla.org/page.cgi?id=fields.html diff --git a/errors/401.html b/errors/401.html new file mode 100644 index 000000000..c72ac399a --- /dev/null +++ b/errors/401.html @@ -0,0 +1,40 @@ + + + + Access Denied + + + + buggie +
+

Authentication Required

+

This server could not verify that you are authorized to access + that url. you either supplied the wrong credentials (e.g., bad + password), or your browser doesn't understand how to supply the + credentials required.

+

Error 401

+

bugzilla.mozilla.org

+
+ + diff --git a/errors/403.html b/errors/403.html new file mode 100644 index 000000000..a5cc85a31 --- /dev/null +++ b/errors/403.html @@ -0,0 +1,37 @@ + + + + Access Denied + + + + buggie +
+

Access Denied

+

Access to the requested resource has been denied.

+

Error 403

+

bugzilla.mozilla.org

+
+ + diff --git a/errors/404.html b/errors/404.html new file mode 100644 index 000000000..0c1ebafb8 --- /dev/null +++ b/errors/404.html @@ -0,0 +1,37 @@ + + + + Object Not Found + + + + buggie +
+

Object Not Found

+

The requested URL was not found on this server.

+

Error 404

+

bugzilla.mozilla.org

+
+ + diff --git a/errors/500.html b/errors/500.html new file mode 100644 index 000000000..672dba36d --- /dev/null +++ b/errors/500.html @@ -0,0 +1,37 @@ + + + + Internal Server Error + + + + buggie +
+

Internal Server Error

+

The server encountered an internal errors and was unable to complete your request.

+

Error 500

+

bugzilla.mozilla.org

+
+ + diff --git a/images/buggie.png b/images/buggie.png new file mode 100644 index 000000000..454a080a8 Binary files /dev/null and b/images/buggie.png differ -- cgit v1.2.3-24-g4f1b