Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 200-errorfix-1246608-1.patch | 452 bytes | vaidik |
Comments
Comment #1
vaidik CreditAttribution: vaidik commentedSo the fix is pretty straight forward, should work for everyone.
Needs review.
Comment #2
Hugo Wetterberg CreditAttribution: Hugo Wetterberg commentedFixed by allowing all response codes in the 200-range