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?
I have a setup where I’m serving simple python pages using the mod_python publisher.
Share
I am not a python expert but from this documentation, it would appear that you can do:
Here is a quote of the documentation in case of link rot: