Better failure on non-json responses
Merge pull request #17 from SmileyChris/non-json-errors

Better failure on non-json responses