Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

http return code of standard_error_message

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


u.theiss at eurodata

Sep 7, 2009, 12:29 AM

Post #1 of 6 (2118 views)
Permalink
http return code of standard_error_message

Hello list,

is there a possibility to send the standard_error_message with http
return code 200 (ok) instead of 500 (internal_server_error)?

Many thanks in advance,
Ulla
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


chris at simplistix

Sep 7, 2009, 4:48 AM

Post #2 of 6 (1994 views)
Permalink
Re: http return code of standard_error_message [In reply to]

Ulla Theiss wrote:
> Hello list,
>
> is there a possibility to send the standard_error_message with http
> return code 200 (ok) instead of 500 (internal_server_error)?

Why would you want to? That's in violation of several http specs...

Chris

_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


u.theiss at eurodata

Sep 7, 2009, 5:43 AM

Post #3 of 6 (1984 views)
Permalink
Re: http return code of standard_error_message [In reply to]

Hallo list,

because the application error messages like checks of input values
produce such error messages.
The browser "firefox" does display these messages, but the "Internet
Explorer" with the newest updates does not.
The "Internet Explorer" displays a own error message instead. Only if
you manipulate the flag "show friendly http error messages" the
body of standard_error_messages is *always* displayed. But we think, it
would be difficult to make shure that every user does this.

Ulla

Chris Withers wrote:
> Ulla Theiss wrote:
>> Hello list,
>>
>> is there a possibility to send the standard_error_message with http
>> return code 200 (ok) instead of 500 (internal_server_error)?
>
> Why would you want to? That's in violation of several http specs...
>
> Chris
>

_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


peterbe at gmail

Sep 7, 2009, 6:17 AM

Post #4 of 6 (1982 views)
Permalink
Re: http return code of standard_error_message [In reply to]

Don't raise errors that cause 500 type HTTP error codes on input validation.
It's not an error. It's a user input error.

2009/9/7 Ulla Theiss <u.theiss [at] eurodata>:
> Hallo list,
>
> because the application error messages like checks of input values
> produce such error messages.
> The browser "firefox" does display these messages, but the "Internet
> Explorer" with the newest updates does not.
> The "Internet Explorer" displays a own error message instead. Only if
> you manipulate the flag "show friendly http error messages" the
> body of standard_error_messages is *always* displayed. But  we think, it
> would be difficult to  make shure that every user does this.
>
> Ulla
>
> Chris Withers wrote:
>> Ulla Theiss wrote:
>>> Hello list,
>>>
>>> is there a possibility to send the standard_error_message with http
>>> return code 200 (ok) instead of 500 (internal_server_error)?
>>
>> Why would you want to? That's in violation of several http specs...
>>
>> Chris
>>
>
> _______________________________________________
> Zope maillist  -  Zope [at] zope
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope-dev )
>



--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
fun crosstips.org
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


u.theiss at eurodata

Sep 7, 2009, 7:31 AM

Post #5 of 6 (1988 views)
Permalink
Re: http return code of standard_error_message [In reply to]

Hello list,

what is in your opinion the best zopish way to raise input validation
errors,
dublicate value errors, or other application errors I want to display to the
user?

Ulla

Peter Bengtsson wrote:
> Don't raise errors that cause 500 type HTTP error codes on input validation.
> It's not an error. It's a user input error.
>
> 2009/9/7 Ulla Theiss <u.theiss [at] eurodata>:
>
>> Hallo list,
>>
>> because the application error messages like checks of input values
>> produce such error messages.
>> The browser "firefox" does display these messages, but the "Internet
>> Explorer" with the newest updates does not.
>> The "Internet Explorer" displays a own error message instead. Only if
>> you manipulate the flag "show friendly http error messages" the
>> body of standard_error_messages is *always* displayed. But we think, it
>> would be difficult to make shure that every user does this.
>>
>> Ulla
>>
>> Chris Withers wrote:
>>
>>> Ulla Theiss wrote:
>>>
>>>> Hello list,
>>>>
>>>> is there a possibility to send the standard_error_message with http
>>>> return code 200 (ok) instead of 500 (internal_server_error)?
>>>>
>>> Why would you want to? That's in violation of several http specs...
>>>
>>> Chris
>>>
>>>
>> _______________________________________________
>> Zope maillist - Zope [at] zope
>> https://mail.zope.org/mailman/listinfo/zope
>> ** No cross posts or HTML encoding! **
>> (Related lists -
>> https://mail.zope.org/mailman/listinfo/zope-announce
>> https://mail.zope.org/mailman/listinfo/zope-dev )
>>
>>
>
>
>
>

_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


chris at simplistix

Sep 7, 2009, 7:38 AM

Post #6 of 6 (1985 views)
Permalink
Re: http return code of standard_error_message [In reply to]

Ulla Theiss wrote:
> Hello list,
>
> what is in your opinion the best zopish way to raise input validation
> errors,
> dublicate value errors, or other application errors I want to display to
> the
> user?

Use a form generation framework, or at least use the same techniques
that they do...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.