fix nasty error on status when API response not JSON #190