httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@apache.org>
Subject Re: bug in mod_cgi (sends 200 instead of 500)
Date Fri, 17 Jan 2003 09:15:45 GMT
--On Friday, January 17, 2003 4:36 PM +1100 Stas Bekman 
<stas@stason.org> wrote:

> Consider this mod_cgi script:
>
># !/usr/bin/perl -w
> print "Content-type: text/plain\n\n";
> print no_such_func();
> print "Shouldn't be printed";
>
> httpd.conf:
> ScriptAlias /cgi-bin/ "/home/httpd/2.0/perl/"
>
> The error is correctly logged:
>
> [Fri Jan 17 16:31:03 2003] [error] [client 127.0.0.1] Undefined
> subroutine &main::no_such_func called at
> /home/httpd/2.0/perl/500.pl line 6.
>
> Though the client gets the response code 200!

Why do you think that would be a 500?

I don't think merely writing stuff out to stderr or returning with an 
non-zero status code shouldn't be grounds for a 500.  -- justin

Mime
View raw message