[Zope] Error messages not being displayed by proxy

Dieter Maurer dieter@handshake.de
Fri, 25 Jan 2002 22:36:28 +0100


Smith, Neil writes:
 > We are running Webthority to secure access to our server.  It works fine
 > except that if there is an error, then instead of getting the error message
 > from Zope, we get an error screen from the proxy. i.e:
 > 
 > Webthority Error:
 > Unable to retrieve content at this time.  Please contact your administrator
 > if this problem persists
 > Error 503 from server
 > 
 > I guess that this is because Zope sets something in the header to say that
 > it is an error rather than just normal html, which the proxy intercepts.  
Yes, it sets the HTTP response code.
 > 
 > Is this the case, and if so, is it possible to set something so that errors
 > get displayed as normal html pages?
You can provide your own error page ("standard_error_message") and
reset the response code with "RESPONSE.setStatus".


Dieter