[mod_python] Sending back headers with 4xx responses

Deron Meranda deron.meranda at gmail.com
Wed May 31 14:13:22 EDT 2006


On 5/31/06, Nic James Ferrier <nferrier at tapsellferrier.co.uk> wrote:
> Sorry - I ommitted to mention that the headers have to go into:
>
>    http_request_object.err_headers_out
>
> So, something like:
>
>   http_request_object.err_headers_out["Content-Range"] = 10
>   raise apache.SERVER_RETURN, 416
>
> should work.


Yes!  That works.  Somehow I just missed the err_headers_out
member completely.

Thanks Nic
-- 
Deron Meranda


More information about the Mod_python mailing list