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

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

It is hosted on a CentOS 5 machine.

Replies are listed 'Best First'.
Re^5: Set HTTP Status code
by Anonymous Monk on Mar 09, 2012 at 03:01 UTC

    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.