Skip to content
Snippets Groups Projects
Commit ba9b4bfd authored by srosse's avatar srosse
Browse files

OO-3911: add custom error pages for 400-417 and 500-505 error codes

parent 9690fd42
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<load-on-startup>1</load-on-startup> <load-on-startup>1</load-on-startup>
</servlet> </servlet>
<!-- Jersey REST Servlet --> <!-- Apache CXF Servlet -->
<servlet> <servlet>
<servlet-name>RESTServletAdaptor</servlet-name> <servlet-name>RESTServletAdaptor</servlet-name>
<display-name>CXF Servlet</display-name> <display-name>CXF Servlet</display-name>
...@@ -187,10 +187,102 @@ ...@@ -187,10 +187,102 @@
<session-config> <session-config>
<session-timeout>60</session-timeout> <session-timeout>60</session-timeout>
</session-config> </session-config>
<error-page>
<error-code>400</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>402</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>405</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>406</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>407</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>408</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>409</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>410</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>411</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>412</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>413</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>414</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>415</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>416</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>417</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page> <error-page>
<error-code>500</error-code> <error-code>500</error-code>
<location>/errors/error.html</location> <location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>501</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>502</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>503</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>504</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>505</error-code>
<location>/errors/error.html</location>
</error-page> </error-page>
<error-page> <error-page>
<exception-type>java.lang.Throwable</exception-type> <exception-type>java.lang.Throwable</exception-type>
......
...@@ -158,16 +158,107 @@ ...@@ -158,16 +158,107 @@
<url-pattern>/ical/*</url-pattern> <url-pattern>/ical/*</url-pattern>
</servlet-mapping><!-- Spring loading --> </servlet-mapping><!-- Spring loading -->
<!-- 6. Session-Config --> <!-- 6. Session-Config -->
<!-- default session timeout --> <!-- default session timeout -->
<session-config> <session-config>
<session-timeout>60</session-timeout> <session-timeout>60</session-timeout>
</session-config> </session-config>
<error-page>
<error-code>400</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>402</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>405</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>406</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>407</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>408</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>409</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>410</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>411</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>412</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>413</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>414</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>415</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>416</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>417</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page> <error-page>
<error-code>500</error-code> <error-code>500</error-code>
<location>/errors/error.html</location> <location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>501</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>502</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>503</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>504</error-code>
<location>/errors/error.html</location>
</error-page>
<error-page>
<error-code>505</error-code>
<location>/errors/error.html</location>
</error-page> </error-page>
<error-page> <error-page>
<exception-type>java.lang.Throwable</exception-type> <exception-type>java.lang.Throwable</exception-type>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment