rewrite http/response