title: How to perform content negotiation in django middleware?
body: <p>Let say i have a Custom <code>Django Middleware</code> which check request header has jwt token if not return rest_framework <code>Response</code>., </p>
  
  <pre><code>middleware.py
  
  @staticmethod
  def process_view(request, view_func, view_args, view_kwargs):
      try:
          jwt_token = request.headers["token"]
      except KeyError:
          response = Response(status=status.HTTP_403_FORBIDDEN)
          return response
  </code></pre>
  
  <p>but i am getting error like </p>
  
  <blockquote>
    <p>.accepted_renderer not set on Response</p>
  </blockquote>
  
  <p>how to perform content-negotiation here?</p>