              self.prepare_response(response)
  
          return self.final(request, response, *args, **kwargs)
  
      def options(self, request, *args, **kwargs):
          content = {
              'name': self.get_name(),
 
</s> remove         response_obj = {
 </s> add         content = { </s> remove         except ErrorResponse, exc:
            response = exc.response
 </s> add         except ErrorResponse, response:
            # Prepare response for the response cycle.
            self.prepare_response(response) </s> remove             response.cleaned_content = self.filter_response(response.raw_content)
 </s> add             # TODO: ugly
            if hasattr(response, 'raw_content'):
                response.raw_content = self.filter_response(response.raw_content)
            else:
                response.content = self.filter_response(response.content) </s> remove             self.initial(request, *args, **kwargs)
 </s> add             # `initial` is the opportunity to temper with the request, 
            # even completely replace it.
            self.request = request = self.initial(request, *args, **kwargs) </s> remove         self.headers = {}
 </s> add 
        # `final` is the last opportunity to temper with the response, or even
        # completely replace it.
              self.prepare_response(response)
  
        # `final` is the last opportunity to temper with the response, or even
        # completely replace it.
          return self.final(request, response, *args, **kwargs)
  
      def options(self, request, *args, **kwargs):
          content = {
              'name': self.get_name(),
keep add keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/views.py