Some errors do not get caught by the standard_error_message and there are very good reasons for that. The easiest way to do it so far is to hack the source code where that message is printed to produce something nice. ----- Original Message ----- From: "jensebaer" <jensebaer@hotmail.com> To: <zope@zope.org> Sent: Thursday, September 28, 2000 10:00 AM Subject: [Zope] How to change Unauthorized error message? Hi all, I want to give out another error message (not the standard error message) when logging was without success. Zope Error Zope has encountered an error while publishing this resource. Unauthorized You are not authorized to access this resource. No Authorization header found. Traceback (innermost last): File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 151, in publish File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/BaseRequest.py, line 446, in traverse File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/HTTPResponse.py, line 551, in unauthorized Unauthorized: (see above) -------------------------------------------------------------------------- Troubleshooting Suggestions a.. The URL may be incorrect. b.. The parameters passed to this resource may be incorrect. c.. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. how can I mange this. I tryed it with the standard_error_message: <dtml-if "error_type == 'Unauthorized'"> <dtml-return standard_Unauthorized_html> </dtml-if> but that doesen´t work. Any ideas? Jens