raise exception if status code is not 200