def _make_response(self, content, headers, status): web.ctx.status = status for k, v in headers: web.header(k, v) return content