code: def error_response(self, error, mimetype='application/json', status=400,
              **kwargs):
          
          return HttpResponse(json.dumps(error), mimetype=mimetype,
                  status=status, **kwargs)
docs: Return an error response to the client with default status code of
          *400* stating the error as outlined in :rfc:`5.2`.