[Python-Dev] HTTP responses and errors (original) (raw)
Facundo Batista facundo at taniquetil.com.ar
Tue Mar 27 18:12:06 CEST 2007
- Previous message: [Python-Dev] HTTP responses and errors
- Next message: [Python-Dev] HTTP responses and errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
Why only 200 and 206?
This kind of question can often be answered through the revision history. If you do 'svn annotate', you see that the line testing ... So it seems that it only tests for 200 and 206 because the experiments never produced a need for anything else.
Thanks for this detailed explanation, I learned a lot of how to "discover" the history of a piece of code (didn't know about "annotate").
Regarding the codes themselves: As the tests for 200 and 206 came from just needing them, I think there's no reason to not include the rest of 200.
So, in the base that the RFC says that "2xx" codes means that the request was succeded, I think we shouldn't raise an Exception.
Right now, it's a bug. Do you think it's safe to fix this or will break much code?
Regards,
-- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/
- Previous message: [Python-Dev] HTTP responses and errors
- Next message: [Python-Dev] HTTP responses and errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]