Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Set HTTP Status code

by molybtek (Novice)
on Nov 16, 2011 at 22:39 UTC ( #938481=note: print w/ replies, xml ) Need Help??


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

We are using Apache 2.2 web server.

The server does find the code and is executing it - if I removed the code to change the status, it will display the output from the program, and the status is 200 OK.

However, I want it to display a status of 404 Not Found, so when I included the code $self->header_props(-status => 404);, I get the error message instead of the output from the program.

I've checked the error log, there are no entry for it.


Comment on Re^2: Set HTTP Status code
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-07-06 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls