Without looking at the docs, I'd assume this sets the HTTP response code - ie '200' for a successful request, etc etc. 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 )
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 )
Peter Bengtsson 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?
Yes, it does, but maybe you want to override it for some special applications... -mj
--On Montag, 3. Februar 2003 10:12 +0000 Peter Bengtsson <mail@peterbe.com> wrote:
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?
It does but you can override the response code on your own if necessary. -aj
participants (4)
-
Andreas Jung -
Maik Jablonski -
Peter Bengtsson -
pskipwortï¼ touchcorp.com