attempt to get error type of json response