cleanup http response