Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: passing HTTP status code

by spq (Friar)
on Oct 12, 2008 at 11:54 UTC ( #716669=note: print w/ replies, xml ) Need Help??


in reply to passing HTTP status code

I believe what you are looking for is described at http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_status_. Which explains:

$status = $r->status();

Or, to modify your example:

sub return_test { my $r = shift; return $r->status(); }


Comment on Re: passing HTTP status code
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-11-01 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (227 votes), past polls