Re: Returning 200 status from my handler

2014-01-14 Thread Perrin Harkins
Hi John, I notice, in the getting started documentation, that I am supposed to return Apache2::Const::OK to indicate an HTTP 200 success status Actually, that's not about sending a HTTP 200 success status. You return Apache2::Const::OK to tell httpd that your handler ran correctly. When I

Re: Returning 200 status from my handler

2014-01-14 Thread John Dunlap
That actually does clear it up for me. Now that you point it out, this is actually in keeping with established unix conventions. On the shell, a 0 return code has always indicated success while non-zero values indicate an error. That didn't occur to me(though it probably should have) because I was

Re: Returning 200 status from my handler

2014-01-11 Thread Marius Gavrilescu
John Dunlap j...@lariat.co writes: Am I missing something? Quoting [0]: HTTP handlers may return any HTTP status, which similarly to Apache2::Const::DONE will cause an abort of the request cycle, by also will be interpreted as an error. Therefore you don't want to return

Returning 200 status from my handler

2014-01-10 Thread John Dunlap
I'm new to mod_perl within the last year, so I apologize if this is a silly question. I notice, in the getting started documentation, that I am supposed to return Apache2::Const::OK to indicate an HTTP 200 success status but when I print out the value of this constant I get 0. When I print out