make sure handleResponse return a response object