Update response.rs

fix error of using deprecated function