示例#1
0
 def __init__(self, message):
     DjangoHttpResponseBadRequest.__init__(self,
                                           message_to_json(message),
                                           content_type='application/json')
示例#2
0
 def __init__(self):
   HttpResponseBadRequest.__init__(self)
   self.write('<p>Bad Request. Please check your query and try again.</p>')
示例#3
0
 def __init__(self, request, msg):
   HttpResponseBadRequest.__init__(self, '<h1>400 Bad Request</h1><p>%s</p>'%msg)