Re: status code / constant question

2006-10-23 Thread Jonathan Vanasco
On Oct 23, 2006, at 2:31 PM, Michael Peters wrote: This is because your are confusing HTTP status codes and Apache constants. They are not the same. Apache2::Const::OK (which is what handlers return) is different from Apache2::Const::HTTP_OK (which is what the browser eventually gets). m

Re: status code / constant question

2006-10-23 Thread Michael Peters
Jonathan wrote: > I started supporting 400/403 errors in a mod_perl handler for an API on > my projects > > I ran into this odd little issue: > > With this line: > DEBUG_STATUS && print STDERR ("\n status-> " . $r->status() . ' | ' > . Apache2::Const::OK ); > I'd expect to see > status-

Re: status code / constant question

2006-10-23 Thread Clinton Gormley
On Sun, 2006-10-22 at 12:48 -0400, Jonathan wrote: > I started supporting 400/403 errors in a mod_perl handler for an API > on my projects > > I ran into this odd little issue: > > With this line: > DEBUG_STATUS && print STDERR ("\n status-> " . $r->status() . ' | > ' . Apache2::Const::