You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Helmut Zeilinger <hz...@hzlabs.de> on 2004/05/01 09:12:39 UTC

$r->status() ?

Hi all,

i am confused about $r->status().
When do i have to set this "manually" - if ever? 
I searched for documentations about this item, but i did not find a
detailed explaination.

My problem is, what's the difference between

sub handler {
..
$r->status(404);
return (?);
}

and

sub handler {
..
return (HTTP_NOT_FOUND);
}

[? means that i don't know what to return]


Regards

Helmut




---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: $r->status() ?

Posted by "Dr. Helmut Zeilinger" <hz...@hzlabs.de>.
Sorry,  i erroneously posted this to the asp list, but it rather should
have been posted to the mod_perl list ..


--On Saturday, May 01, 2004 09:12:39 +0200 Helmut Zeilinger <hz...@hzlabs.de>
wrote:

> Hi all,
> 
> i am confused about $r->status().
> When do i have to set this "manually" - if ever? 
> I searched for documentations about this item, but i did not find a
> detailed explaination.
> 
> My problem is, what's the difference between
> 
> sub handler {
> ..
> $r->status(404);
> return (?);
> }
> 
> and
> 
> sub handler {
> ..
> return (HTTP_NOT_FOUND);
> }
> 
> [? means that i don't know what to return]
> 
> 
> Regards
> 
> Helmut
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org