All responses with except those with response code 200 are treated as errors and as a result of that an exception is thrown.

To my knowledge, not all non-200 responses are errors. An example of this is Google Data Protocol. Check http://code.google.com/apis/gdata/docs/2.0/reference.html#Queries and look for HTTP status codes section. A request made to Google's APIs return a successful response by using 200 response code for OK and 201 response code for CREATED.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vaidik’s picture

Status: Needs work » Needs review
FileSize
452 bytes
452 bytes

So the fix is pretty straight forward, should work for everyone.

Needs review.

Hugo Wetterberg’s picture

Status: Needs review » Fixed

Fixed by allowing all response codes in the 200-range

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.