raise exception if returned status code is not 200