Add better response handling to httpget