[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find the values of Apache2::Const


Adam Prime wrote:
Boysenberry Payne wrote:
I only ask because I tried a $r->status(Apache2::Const::OK) and got
a 500 returned in the header even though my handler returned with
Apache::Const::OK also...

To avoid the 500 header I had to do $r->status(200);  I imagine the
 status code isn't going to change too soon, so I ought to be okay,
right?

I believe in this situation what you want is $r->status(Apache::Const::HTTP_OK). HTTP_OK and OK are not the same
 thing at all.

Good point. I guess I wasn't reading the original post clearly enough. That would certainly make a difference.

Colin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.