On Fri, 15 Oct 1999, Ian Mahuron wrote:
>
> I'm writing a Apache::Registry script and would like to use the following
> syntax to return server status:
> $r->status(FORBIDDEN);
> My problem is that the resulting error message is a bit funky.
$r->status isn't quite the same as the handler return code, you can write
your code as a handler subroutine that does 'return FORBIDDEN;'
or use this undocumented feature:
$Apache::ERRSV_CAN_BE_HTTP = 1; #set this anywhere, startup script is best
die FORBIDDEN;
mod_perl peeks at $@, if it's a 3 digit http status code, it propagates
that value to Apache.
-Doug