              response_obj['fields'] = field_name_types
          # Note 'ErrorResponse' is misleading, it's just any response
          # that should be rendered and returned immediately, without any
          # response filtering.
          raise ErrorResponse(status.HTTP_200_OK, response_obj)
  
  
  class ModelView(View):
      """
      A RESTful view that maps to a model in the database.
 
</s> remove             response_obj['fields'] = field_name_types
 </s> add             content['fields'] = field_name_types </s> remove         Hook for any code that needs to run after everything else in the view.
 </s> add         Returns an `HttpResponse`. This method is a hook for any code that needs to run
        after everything else in the view. </s> remove 
        # Always add these headers.
        response.headers['Allow'] = ', '.join(self.allowed_methods)
        # sample to allow caching using Vary http header
        response.headers['Vary'] = 'Authenticate, Accept'

        # merge with headers possibly set at some point in the view
        response.headers.update(self.headers)
        return self.render(response)

    def add_header(self, field, value):
        """
        Add *field* and *value* to the :attr:`headers` attribute of the :class:`View` class.
        """
        self.headers[field] = value
 </s> add         return response </s> remove         Hook for any code that needs to run prior to anything else.
 </s> add         Returns an `HttpRequest`. This method is a hook for any code that needs to run
        prior to anything else.
        raise ErrorResponse(content=content, status=status.HTTP_200_OK)
              response_obj['fields'] = field_name_types
          # Note 'ErrorResponse' is misleading, it's just any response
          # that should be rendered and returned immediately, without any
          # response filtering.
        raise ErrorResponse(content=content, status=status.HTTP_200_OK)
  
  
  class ModelView(View):
      """
      A RESTful view that maps to a model in the database.
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/views.py