def __init__(self, message=None):
     status = "405 Method Not Allowed"
     headers = {"Content-Type": "application/json; charset=UTF-8"}
     HTTPError.__init__(self, status, headers,
                        encodeJson(message or self.message))
Ejemplo n.º 2
0
 def __init__(self, message=None):
   status = "405 Method Not Allowed"
   headers = {
     "Content-Type": "application/json; charset=UTF-8"
   }
   HTTPError.__init__(self, status, headers, encodeJson(message or self.message))