try to parse error responses
added docs on error handler
Merge pull request #2 from rodnaph/parse-error-responses

parse error responses