how to change response code in

Daniel daniel.watrous at
Thu May 28 20:23:35 CEST 2009


Python 2.5.2

I'm using and want to return a response code of 400
with a message in the event that the cgi script fails for some
reason.  I notice that
executes this line of code,
self.send_response(200, "Script output follows")
which overwrites any headers that I print in my cgi.  Is there some
way to modify the response code without having to override


More information about the Python-list mailing list