[Chicago] urllib2

sheila miguez shekay at pobox.com
Tue Aug 9 18:31:19 CEST 2011


No, 200 isn't an error. Http status codes in the 200s are not errors.
An http client should not consider anything returning status 2xx as an
exception.

I'm happy with exceptions for anything outside of the 200s.

On Tue, Aug 9, 2011 at 11:15 AM, Brian Herman <bherma3 at uic.edu> wrote:
> I meant 200 error.
>
> On Tue, Aug 9, 2011 at 11:14 AM, Brian Herman <bherma3 at uic.edu> wrote:
>>
>> No it would be like returning an error code instead of an exception. For
>> example if you get a 500 error it wouldnt throw the exception instead it
>> would give you an integer with the http error.



-- 
sheila


More information about the Chicago mailing list