Fixes #3

Raises meaningful errors for non-200 http responses.