tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "L. Mohan Arun" <>
Subject HTTP status code 404
Date Fri, 02 Sep 2005 12:40:40 GMT
Tomcat 4.1
How can I configure Tomcat 4 to return HTTP status code 404 for a "404 Page 
Not Found" error? Currently it displays a HTML page with "Error type" etc. 
with status code 200.

The docs say <error-page> element in web.xml can be configured to serve 
another page in response to a 404 error but this is not what I want (because 
it will return a 200 OK status). I want the actual error code 404 to be 
returned to the client and HTTP status code 404 (Page not found).

Mohan Arun

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message