Parse JSON response when there is an error. Message is better than the
generic message
Merge pull request #10 from wargre/master

Better error message when connecting with REST