      def parse(self, stream):
          try:
              return json.load(stream)
          except ValueError, exc:
              raise ResponseException(status.HTTP_400_BAD_REQUEST, {'detail': 'JSON parse error - %s' % str(exc)})
  
  
  class DataFlatener(object):
      """Utility object for flatening dictionaries of lists. Useful for "urlencoded" decoded data."""
  
 
</s> remove         raise ResponseException(status.HTTP_500_INTERNAL_SERVER_ERROR,
 </s> add         raise ErrorResponse(status.HTTP_500_INTERNAL_SERVER_ERROR, </s> remove class MockView(EmitterMixin, View):
 </s> add class MockView(ResponseMixin, View): </s> remove             raise ResponseException(status.HTTP_501_NOT_IMPLEMENTED,
 </s> add             raise ErrorResponse(status.HTTP_501_NOT_IMPLEMENTED, </s> remove             raise ResponseException(status.HTTP_404_NOT_FOUND)
 </s> add             raise ErrorResponse(status.HTTP_404_NOT_FOUND) </s> remove             raise ResponseException(status.HTTP_405_METHOD_NOT_ALLOWED,
 </s> add             raise ErrorResponse(status.HTTP_405_METHOD_NOT_ALLOWED,
            raise ErrorResponse(status.HTTP_400_BAD_REQUEST, {'detail': 'JSON parse error - %s' % str(exc)})
      def parse(self, stream):
          try:
              return json.load(stream)
          except ValueError, exc:
            raise ErrorResponse(status.HTTP_400_BAD_REQUEST, {'detail': 'JSON parse error - %s' % str(exc)})
  
  
  class DataFlatener(object):
      """Utility object for flatening dictionaries of lists. Useful for "urlencoded" decoded data."""
  
keep keep keep keep replace keep keep keep keep keep
 Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 
djangorestframework/parsers.py