only save file if the http response is 2xx