def __init__(self, code, lazy_body, **kw): Response.__init__(self, code, '', **kw) self.lazy_body = lazy_body
def __init__(self, *args, **kw): Response.__init__(self, 403, '', **kw)
def __init__(self, *args, **kw): Response.__init__(self, self.code, '', **kw) self.lazy_body = self.msg self.args = args
def __init__(self, code=400, lazy_body=None, **kw): Response.__init__(self, code, '', **kw) if lazy_body: self.lazy_body = lazy_body
def __init__(self, *args, **kw): Response.__init__(self, 400, '', **kw) self.lazy_body = self.msg self.args = args
def __init__(self, *args): Response.__init__(self, 400, self.msg.format(*args))
def __init__(self, extension): body = "Failure to typecast extension '{0}'".format(extension) Response.__init__(self, code=404, body=body)
def __init__(self): Response.__init__(self, code=400, body="Possible CRLF Injection detected.")
def __init__(self, ctype): Response.__init__(self, code=415, body="Unknown body Content-Type: %s" % ctype)
def __init__(self, header): Response.__init__(self, code=400, body="Malformed header: %s" % header)