|Don't ask to ask, just ask|
Set HTTP Status codeby molybtek (Novice)
|on Nov 16, 2011 at 03:51 UTC||Need Help??|
molybtek has asked for the
wisdom of the Perl Monks concerning the following question:
I would like to change the status code when returning a page from perl. I'm using CGI-Application, and I tried calling $self->header_props(-status => 404);
This works on my local machine, but when I tried doing the same on my server which uses mod_perl, I get:
The requested URL /test.pl was not found on this server.
Additionally, a 302 Found error was encountered while trying to use an ErrorDocument to handle the request.
Where test.pl was the perl script that I'm trying to change the status code from...
So, just wondering why this is the case and how can I resolve it? Thanks