Re: wwwgopher.pl question
Roy T. Fielding (fielding@avron.ICS.UCI.EDU)
Sat, 22 Oct 1994 23:06:46 -0700
> I do have one question, however. How do I return a custom
> message like:
>
> HTTP/1.0 4xx Server error: Sorry, access denied or file does not exist
>
> where the text is that which is returned by the gopher
> server?
The response line should only contain the error as it is mapped to
the HTTP response code set. Extra error information is placed in
the HTML message content that is generated by wwwerror'onrequest()
by passing it as the $msg parameter. This combination seems to work
well for browsers and debugging clients.
......Roy Fielding ICS Grad Student, University of California, Irvine USA
<fielding@ics.uci.edu>
<URL:http://www.ics.uci.edu/dir/grad/Software/fielding>