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))
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))