def __init__(self, detail=None, headers=None, comment=None,
                 body_template=None):
        Response.__init__(self,
                          status='%s %s' % (self.code, self.title),
                          content_type='text/html')
        Exception.__init__(self, detail)
        if headers:
            self.headers.update(headers)
        self.detail = detail
        self.comment = comment
        if body_template is not None:
            self.body_template = body_template
            self.body_template_obj = Template(body_template)
        if self.empty_body:
            del self.content_type
            del self.content_length
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webob_0_9/webob/exc.py/WSGIHTTPException.__init__/original