THe error parsing / detection can be a lot simpler now the API is consistent in what it returns
Merge pull request #13 from humanmade/better-error-reporting

Improve Error Reporting