soundcloud/soundcloud-python — pull request #3 by paulosman (2012-02-29 19:50:06+00:00)
Title: Raise exceptions depending on the HTTP status

To maintain consistency with the Ruby API wrapper, we should raise exceptions for 4xx and 5xx response codes. This is taken care of by the requests HTTP library:

http://docs.python-requests.org/en/v0.10.6/api/#requests.Response

Note that redirects are already performed by the library for idempotent methods.