Raise exception on API request error.
Merge pull request #16 from fossilet/master

Raise exception on API request error