[Zope] RESPONSE.setStatus(), what does that do?

Peter Bengtsson mail@peterbe.com
Mon, 03 Feb 2003 10:12:14 +0000


At 13:34 2003-02-03 +1100, pskipwort@touchcorp.com wrote:
>Without looking at the docs, I'd assume this sets the HTTP response code
>- ie '200' for a successful request, etc etc.

But doesn't Zope do that automatically?

>Cheers
>
>P
>
>
>-----Original Message-----
>From: mail@peterbe.com [mailto:mail@peterbe.com]
>Sent: Monday, 3 February 2003 12:08 PM
>To: zope@zope.org
>Subject: [Zope] RESPONSE.setStatus(), what does that do?
>
>
>I noticed in Dieter Mauer's Chapter 3 book this DTML::
>
>   ...
>   <dtml-except>
>   <dtml-call "RESPONSE.setStatus(error_type)">
>   ...
>
>What does that setStatus actually do? Or, what does it help?
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://mail.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )