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 Apache2::Const::HTTP_OK from your HTTP response handler, but
    Apache2::Const::OK and Apache will send the 200 OK status by
    itself.

Apache2::Const::OK tells apache2 that the handler was successful.

Apache2::Const::HTTP_* tell apache2 that the handler failed and the
error code should be HTTP_*.

Thus, returning Apache2::Const::HTTP_OK would tell apache2 that
something went wrong and it should send an error, and the error should
have return code 200 OK.

[0]: 
https://perl.apache.org/docs/2.0/user/handlers/intro.html#Handler_Return_Values
-- 
Marius Gavrilescu

Attachment: pgpeQLgrl7p44.pgp
Description: PGP signature

Reply via email to