Raise a (hopefully) informative error when the API returns an unsuccessful response
Merge pull request #6 from gevans/raise-api-errors

Raise errors when API returns unsuccessful response