How to throw an HTTP error with mod_python

Posted by Zxaos on Stack Overflow See other posts from Stack Overflow or by Zxaos
Published on 2010-03-26T01:36:45Z Indexed on 2010/03/26 1:43 UTC
Read the original article Hit count: 402

Filed under:
|
|
|

I have a setup where I'm serving simple python pages using the mod_python publisher. At some points I'd like to have the python function raise a standard apache error - for example throwing a 500 error if a required file is missing. How can I throw an apache error from within a mod_python script?

© Stack Overflow or respective owner

Related posts about mod-python

Related posts about pyton