Add a custom error page for HTTP status 503.
authorPanagiotis Astithas <pastith@gmail.com>
Tue, 3 Nov 2009 10:00:11 +0000 (12:00 +0200)
committerPanagiotis Astithas <pastith@gmail.com>
Tue, 3 Nov 2009 10:00:11 +0000 (12:00 +0200)
src/gr/ebs/gss/public/error503.html [new file with mode: 0644]
war/WEB-INF/web.xml

diff --git a/src/gr/ebs/gss/public/error503.html b/src/gr/ebs/gss/public/error503.html
new file mode 100644 (file)
index 0000000..0ea0c42
--- /dev/null
@@ -0,0 +1,25 @@
+<html>
+       <head>
+               <title>Pithos</title>
+               <link type="text/css" rel="stylesheet" href="/pithos/main.css">
+       </head>
+       <body>
+<div class="wrapper" >
+<div class="header"></div>
+<div class="image_logo">
+<table><tr>
+  <td><a href="/"><img src="/pithos/images/service-logo.png"></img></a>
+</tr></table>
+</div> <!-- image_logo -->
+<div style="clear: both; "> </div>
+<div class="page_main">
+               <center>
+               <p class="big">HTTP status 503
+               <p>The server is temporarily unable to service your request due to
+                maintenance downtime or capacity problems. Please try again later.
+               </center>
+</div>
+<div class="footer"></div>
+</div> <!-- wrapper -->
+       </body>
+</html>
index e98246f..721a428 100644 (file)
@@ -2,6 +2,14 @@
 <web-app>
                <error-page>
                        <error-code>
+                   503
+               </error-code>
+               <location>
+                   /error503.html
+               </location>
+           </error-page>
+               <error-page>
+                       <error-code>
                    502
                </error-code>
                <location>