I'm writing a Apache::Registry script and would like to use the following
syntax to return server status:
my $r = $apache->request;
$r->content_type('text/html');
unless (some_test) {
$r->log_error("FOO");
$r->status(FORBIDDEN);
return;
}
My problem is that the resulting error message is a bit funky.
I get the typical : Forbidden You don't have permission to access /foo on
this server
But then I *ALSO* get : Additionally, a 403 Forbidden error was encountered
while trying to use an ErrorDocument to handle the request
When I return a 403, it says "Additionally a 403.." when it's a 404, it says
"Additionally a 404...".
What's the proper way to do this so I don't end up with "double errors" ???
FYI: I've not configured any kind of ErrorDocument
Ian