[opencms-dev] 404 not returning 404

Andras Balogh abalogh at gmail.com
Thu Jul 14 08:46:07 CEST 2005


Hello Joe,

    OpenCMS registers itself as 404 handler, this is important for the 
feature "export on demand".
Why do you want to return 404? Usually you could make a page with a text 
like:
"Page not found blabla ..."

Best regards,
Andras.

Joe Desbonnet wrote:

>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.
>
>
>_______________________________________________
>This mail is send to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>  
>




More information about the opencms-dev mailing list