[mod_python] returning an integer instead of apache.OK

Adrian Holovaty modpython at holovaty.com
Sat Jan 10 20:44:45 EST 2004


Hi all,

Instead of returning a mod_python constant (e.g. apache.OK or 
apache.HTTP_NOT_FOUND), can a mod_python handler return an integer of the 
HTTP status code (e.g. 200 or 404) instead? The docs seem to suggest that, 
but I'd like to make sure.

Thanks!

Adrian



More information about the Mod_python mailing list