      def http_method_not_allowed(self, request, *args, **kwargs):
          """
          Return an HTTP 405 error if an operation is called which does not have a handler method.
          """
          raise ErrorResponse(content=
                  {'detail': 'Method \'%s\' not allowed on this resource.' % request.method},
              status=status.HTTP_405_METHOD_NOT_ALLOWED)
  
      def initial(self, request, *args, **kargs):
          """
 
</s> remove         raise ErrorResponse(content=detail, status=400)
 </s> add         raise ImmediateResponse(content=detail, status=400) </s> remove     renderers = (DocumentingHTMLRenderer, )
 </s> add     renderer_classes = (DocumentingHTMLRenderer, ) </s> remove     renderers = (DocumentingHTMLRenderer, JSONRenderer)
 </s> add     renderer_classes = (DocumentingHTMLRenderer, JSONRenderer) </s> remove     renderers = (RendererA, RendererB)
 </s> add     renderer_classes = (RendererA, RendererB) </s> remove         Return `None` or raise an :exc:`.ErrorResponse`.
 </s> add         Return `None` or raise an :exc:`.ImmediateResponse`.
        raise ImmediateResponse(content=
      def http_method_not_allowed(self, request, *args, **kwargs):
          """
          Return an HTTP 405 error if an operation is called which does not have a handler method.
          """
        raise ImmediateResponse(content=
                  {'detail': 'Method \'%s\' not allowed on this resource.' % request.method},
              status=status.HTTP_405_METHOD_NOT_ALLOWED)
  
      def initial(self, request, *args, **kargs):
          """
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/views.py