Handle non-json api responses with an error, 0.1.2