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