summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-13 15:49:08 +0100
committerByron Jones <bjones@mozilla.com>2013-03-13 15:49:08 +0100
commit16cbcce87248fc0c13b4d99a3c796a27323c22a6 (patch)
tree4e3055222701c5d037681f0c20197a71770377f8
parent2468425cbde40537364f5e20a4317783903e26e8 (diff)
downloadbugzilla-16cbcce87248fc0c13b4d99a3c796a27323c22a6.tar.gz
bugzilla-16cbcce87248fc0c13b4d99a3c796a27323c22a6.tar.xz
Bug 850546: Add custom 401,403,404, and 500 pages
-rw-r--r--.htaccess4
-rw-r--r--errors/401.html40
-rw-r--r--errors/403.html37
-rw-r--r--errors/404.html37
-rw-r--r--errors/500.html37
-rw-r--r--images/buggie.pngbin0 -> 17002 bytes
6 files changed, 155 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 36c380c7d..333dde2a5 100644
--- a/.htaccess
+++ b/.htaccess
@@ -25,6 +25,10 @@
</IfModule>
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 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>Access Denied</title>
+ <style type="text/css">
+ body {
+ margin: 1em 2em;
+ background-color: #455372;
+ color: #ddd;
+ font-family: sans-serif;
+ }
+ h1, h3 {
+ color: #fff;
+ }
+ a {
+ color: #fff;
+ text-decoration: none;
+ }
+ #buggie {
+ float: left;
+ }
+ #content {
+ margin-left: 100px;
+ padding-top: 20px;
+ }
+ </style>
+ </head>
+ <body>
+ <img src="images/buggie.png" id="buggie" alt="buggie" width="78" height="215">
+ <div id="content">
+ <h1>Authentication Required</h1>
+ <p>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.</p>
+ <h3>Error 401</h3>
+ <p><a href="/">bugzilla.mozilla.org</a></p>
+ </div>
+ </body>
+</html>
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 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>Access Denied</title>
+ <style type="text/css">
+ body {
+ margin: 1em 2em;
+ background-color: #455372;
+ color: #ddd;
+ font-family: sans-serif;
+ }
+ h1, h3 {
+ color: #fff;
+ }
+ a {
+ color: #fff;
+ text-decoration: none;
+ }
+ #buggie {
+ float: left;
+ }
+ #content {
+ margin-left: 100px;
+ padding-top: 20px;
+ }
+ </style>
+ </head>
+ <body>
+ <img src="images/buggie.png" id="buggie" alt="buggie" width="78" height="215">
+ <div id="content">
+ <h1>Access Denied</h1>
+ <p>Access to the requested resource has been denied.</p>
+ <h3>Error 403</h3>
+ <p><a href="/">bugzilla.mozilla.org</a></p>
+ </div>
+ </body>
+</html>
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 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>Object Not Found</title>
+ <style type="text/css">
+ body {
+ margin: 1em 2em;
+ background-color: #455372;
+ color: #ddd;
+ font-family: sans-serif;
+ }
+ h1, h3 {
+ color: #fff;
+ }
+ a {
+ color: #fff;
+ text-decoration: none;
+ }
+ #buggie {
+ float: left;
+ }
+ #content {
+ margin-left: 100px;
+ padding-top: 20px;
+ }
+ </style>
+ </head>
+ <body>
+ <img src="images/buggie.png" id="buggie" alt="buggie" width="78" height="215">
+ <div id="content">
+ <h1>Object Not Found</h1>
+ <p>The requested URL was not found on this server.</p>
+ <h3>Error 404</h3>
+ <p><a href="/">bugzilla.mozilla.org</a></p>
+ </div>
+ </body>
+</html>
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 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>Internal Server Error</title>
+ <style type="text/css">
+ body {
+ margin: 1em 2em;
+ background-color: #455372;
+ color: #ddd;
+ font-family: sans-serif;
+ }
+ h1, h3 {
+ color: #fff;
+ }
+ a {
+ color: #fff;
+ text-decoration: none;
+ }
+ #buggie {
+ float: left;
+ }
+ #content {
+ margin-left: 100px;
+ padding-top: 20px;
+ }
+ </style>
+ </head>
+ <body>
+ <img src="images/buggie.png" id="buggie" alt="buggie" width="78" height="215">
+ <div id="content">
+ <h1>Internal Server Error</h1>
+ <p>The server encountered an internal errors and was unable to complete your request.</p>
+ <h3>Error 500</h3>
+ <p><a href="/">bugzilla.mozilla.org</a></p>
+ </div>
+ </body>
+</html>
diff --git a/images/buggie.png b/images/buggie.png
new file mode 100644
index 000000000..454a080a8
--- /dev/null
+++ b/images/buggie.png
Binary files differ