zerodeckvc / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Force exception to status code and connection error #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Set force_exception_to_status_code to False
2. Try to connect to a closed port o to a non existant server

What is the expected output? What do you see instead?

The library converts the "Connection refused" socket error to a
HTTPException returning 400 which is definitely not. The error handling
should catch exceptions more specifically

What version of the product are you using? On what operating system?

I'm using httplib2 0.4.0 and python 2.4

Original issue reported on code.google.com by l.oluy...@gmail.com on 23 Nov 2007 at 10:01

GoogleCodeExporter commented 9 years ago
I can't get this to repeat, closing for now, please reopen with more detailed 
info if
you can get this to repeat.

Original comment by joe.gregorio@gmail.com on 6 Sep 2008 at 5:12