Expose error and status when a request fails
Merge pull request #14 from rashidkpc/master

Expose error text and status code