in reply to Re^2: Set HTTP Status code
in thread Set HTTP Status code

This is getting weirder...

So its been a few months, but you're still omitting all the critical details. Do you want help, yes or no?

Replies are listed 'Best First'.
Re^4: Set HTTP Status code
by molybtek (Novice) on Mar 09, 2012 at 02:09 UTC

    I'm not quite sure what critical details you need...

    It is hosted on a CentOS 5 machine.

    • Apache is Apache/2.2.3
    • Perl is 5.8.8
    • CGI module is 3.5.9
    • mod_perl is 2.0.4-6.el5

      I'm not quite sure what critical details you need...

      Basically all details needed to reproduce the problem you're seeing

      Are you running the program under mod_cgi? under mod_perl and ModPerl::Registry? What filename is the program saved under? What url is mapped to the filename?

        it is just saved as test.pl, it is run under mod_perl. No url mapping...

        test.pl works as expected, the custom ErrorDocument gets displayed.

        test.pl?query has 404 error, but custom ErrorDocument doesn't display, instead the error as specified above.