  
              # Pre-serialize filtering (eg filter complex objects into natively serializable types)
              response.cleaned_content = self.cleanup_response(response.raw_content)
  
          except ResponseException, exc:
              response = exc.response
              
          except:
              import traceback
              traceback.print_exc()
 
</s> remove         return self.emit(response)
 </s> add             return self.emit(response)
        except:
            import traceback
            traceback.print_exc() </s> remove         self.has_content_body = not content is NoContent             # TODO: remove and just use content
        self.raw_content = content      # content prior to filtering - TODO: remove and just use content
        self.cleaned_content = content  # content after filtering      TODO: remove and just use content
 </s> add         self.has_content_body = content is not None
        self.raw_content = content      # content prior to filtering
        self.cleaned_content = content  # content after filtering </s> remove         except ResponseException, exc:           
 </s> add         except ErrorResponse, exc:            </s> remove         except ResponseException, exc:
 </s> add         except ErrorResponse, exc: </s> remove         except ResponseException, exc:           
 </s> add         except ErrorResponse, exc:           
        except ErrorResponse, exc:
  
              # Pre-serialize filtering (eg filter complex objects into natively serializable types)
              response.cleaned_content = self.cleanup_response(response.raw_content)
  
        except ErrorResponse, exc:
              response = exc.response
              
          except:
              import traceback
              traceback.print_exc()
keep keep keep keep replace keep keep keep keep keep
 Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 
djangorestframework/resource.py