[opencms-dev] 404 not returning 404

Joe Desbonnet jdesbonnet at gmail.com
Wed Jul 13 21:13:48 CEST 2005


How do I get the 404 error handler to return a HTTP status code of
404? Right now it seems to return 200.

I tried 
response.setStatus(404) 
in /system/handler/handle404.html JSP script, but that does not appear to work.

I know this has been discussed before, but I cannot find the
resolution of the problem. Ironically, Googling for "Opencms 404"
yields mostly 404 error pages on OpenCms sites which Google mistakes
for content due to the 200 response code.

Joe.



More information about the opencms-dev mailing list