Esempio n. 1
0
 def __init__(self):
     status = '500 Internal Server Error'
     headers = {'Content-Type': 'text/html'}
     HTTPError.__init__(self, status, headers, _Pretty.handle500())
Esempio n. 2
0
 def __init__(self):
     status = '404 Not Found'
     headers = {'Content-Type': 'text/html'}
     HTTPError.__init__(self, status, headers, _Pretty.handle404())
Esempio n. 3
0
 def __init__(self):
     status = '500 Internal Server Error'
     headers = {'Content-Type': 'text/html'}
     HTTPError.__init__(self, status, headers, _Pretty.handle500())
Esempio n. 4
0
 def __init__(self, message=None):
     status = "400 Bad Request"
     headers = {'Content-Type': 'text/html'}
     HTTPError.__init__(self, status, headers, message or self.message)
Esempio n. 5
0
 def __init__(self):
     status = '404 Not Found'
     headers = {'Content-Type': 'text/html'}
     HTTPError.__init__(self, status, headers, _Pretty.handle404())