Fix code of handle http response