[Zope] Which Script Catches HTTP 404 Errors?

Jens Vagelpohl jens@zope.com
Thu, 9 Jan 2003 07:44:00 -0500


you did make yourself clear and you got the correct answer. you need to=20=

work with standard_error_message.

if you meddle with it and suddenly get an error report that is not what=20=

you expect from your changed standard_error_message then the most=20
likely reason is that your standard_error_message itself is buggy.

jens


On Thursday, Jan 9, 2003, at 00:45 US/Eastern, beno wrote:

> At 08:56 PM 1/8/2003 +0100, you wrote:
>> beno wrote at 2003-1-6 16:30 -0400:
>>  > Which script captures HTTP 404 errors? I need to play with it.
>> You can customize "standard_error_message".
>>
>> It gets called for all exceptions not handled by the application.
>> "404" exceptions cannot be handle by the application because
>> it is not reached.
>
> I'm sorry: I didn't make myself clear. What I meant was the Zope=20
> *equivalent* of HTTP 404. For example, when I call a nonexistent page=20=

> at port 8080 on my server, I get this:
>
> """
> Site Error
> An error was encountered while publishing this resource.
>
> Debugging NoticeZope has encountered a problem publishing your object.
> Cannot locate object at: http://webmaster.vi:8080/skel/h
>
> Troubleshooting Suggestions
> =B7The URL may be incorrect.
> =B7The parameters passed to this resource may be incorrect.
> =B7A resource that this resource relies on may be encountering an =
error.
>
> For more detailed information about the error, please refer to the=20
> HTML source for this page.
> If the error persists please contact the site maintainer.
> Thank you for your patience.
> (Also, an error occurred while attempting to render the standard error=20=

> message.)
> """
>
> So...what script generates this?
> TIA,
> beno
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )