Date: Wed, 11 Jul 2012 12:33:49 +0200
Subject: RE: [users@httpd] apache changes status code from 500 to 200

> Sounds like you want mod_asis:

I have put this in my httpd.conf:

<Location /cgi>
    SetHandler  perl-script
    PerlHandler ModPerl::Registry
    Options ExecCGI
    ErrorDocument 400 /handlers/400.h

<Location /handlers>
    SetHandler send-as-is

What I would really like to obtain is that the output of my cgi script (being a complete html document including headers) is not handled by any error handler.
I cannot add the set-as-is hanlder to the cgi script, because that needs the perl-script handler. I suspect that using the ErrorDocument is a dead alley, because that introduces code 200.

In the meantime, I have tried everything I could think of.
Right now, I'm out of ideas. How can I get the status of the cgi-script untampered to the requestor? Hope you have more inspiration ;)