  from django import forms
  from django.core.urlresolvers import reverse, get_urlconf, get_resolver, NoReverseMatch
  from django.db import models
  
  from djangorestframework.response import ErrorResponse
  from djangorestframework.serializer import Serializer, _SkipField
  from djangorestframework.utils import as_tuple
  
  
  class BaseResource(Serializer):
 
</s> remove from djangorestframework.response import ErrorResponse
 </s> add from djangorestframework.response import ImmediateResponse </s> remove from djangorestframework.response import ErrorResponse
 </s> add from djangorestframework.response import ImmediateResponse </s> remove from djangorestframework.response import ErrorResponse
 </s> add from djangorestframework.response import ImmediateResponse </s> remove from djangorestframework.response import Response, ErrorResponse
 </s> add from djangorestframework.response import Response, ImmediateResponse </s> remove from djangorestframework.response import Response, ErrorResponse
 </s> add from djangorestframework.response import Response, ImmediateResponse
from djangorestframework.response import ImmediateResponse
  from django import forms
  from django.core.urlresolvers import reverse, get_urlconf, get_resolver, NoReverseMatch
  from django.db import models
  
from djangorestframework.response import ImmediateResponse
  from djangorestframework.serializer import Serializer, _SkipField
  from djangorestframework.utils import as_tuple
  
  
  class BaseResource(Serializer):
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/resources.py