Home | History | Annotate | Download | only in handlers

Lines Matching refs:code

24         code: HTTP 1.1 status code
25 msg: the W3C names for HTTP 1.1 status code
28 def __init__(self, code=None, msg=None):
29 self.code = code or httplib.INTERNAL_SERVER_ERROR
30 self.msg = msg or httplib.responses[self.code]
31 super(Error, self).__init__(self.code, self.msg)
34 return repr([self.code, self.msg])
40 def __init__(self, code=None, msg=None, errors=None):
41 self.code = code or httplib.BAD_REQUEST
42 self.msg = msg or httplib.responses[self.code]
44 super(FormValidationError, self).__init__(self.code, self.msg)
47 return repr([self.code, self.msg, self.errors])
53 def __init__(self, code):
54 self.code = code
55 self.msg = httplib.responses[code]
56 super(AclError, self).__init__(self.code, self.msg)
59 return repr([self.code, self.msg])