[Tutor] how to return an error from a CGI

Ertl, John C CIV 63134 john.ertl at navy.mil
Mon May 12 20:00:59 CEST 2008


Classification: UNCLASSIFIED 
Caveat (s): FOUO

All,

I have been writing simple cgi scripts for a long time but have never worried about the error codes.  Now I have been asked to return a specific error and I have no idea how to do this.  I do not even know if I should be returning an HTTP or URL error.  If I understand correctly, I am supposed to return something similar to say a 500 error.  I think this is a HTTP error and I tried a few things but no luck. 

Thanks for the ideas.

John Ertl
Meteorologist

FNMOC
7 Grace Hopper Ave.
Monterey, CA 93943
(831) 656-5704
john.ertl at navy.mil

Classification: UNCLASSIFIED 
Caveat (s): FOUO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080512/e681059f/attachment.htm>


More information about the Tutor mailing list