Handle http errors (4XX/5XX)
Merge pull request #96 from geoffrey-brier/handle-http-errors

Handle http errors (4XX/5XX)