You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Arvind Srinivasan <Ar...@Sun.COM> on 2007/01/08 15:27:40 UTC

error-page mapping for 200?

Hi,

StandardContext.findErrorPage(int) 
(http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java) 
has the following

     public ErrorPage findErrorPage(int errorCode) {
         if (errorCode == 200) {
             return (okErrorPage);
         } else {
             return ((ErrorPage) statusPages.get(new Integer(errorCode)));
         }

     }

Why would a web application configure an error-page for a response 
status code of 200?

I'd expected to see something like this
         if (errorCode > 200)
             return ((ErrorPage) statusPages.get(new Integer(errorCode)));
         else
             return null;


Thanks,
Arvind

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org