add custom error class for API responses
test for raising API errors correctly
Merge pull request #6 from jvergeldedios/master

Raise custom error instead of simple Runtime errors on unexpected API status