              """
              try:
                  return (yaml.safe_load(stream), None)
              except ValueError, exc:
                  raise ErrorResponse(
                      content={'detail': 'YAML parse error - %s' % unicode(exc)},
                      status=status.HTTP_400_BAD_REQUEST)
  else:
      YAMLParser = None
  
 
</s> remove             raise ErrorResponse(
 </s> add             raise ImmediateResponse( </s> remove             raise ErrorResponse(
 </s> add             raise ImmediateResponse( </s> remove             raise ErrorResponse(
 </s> add             raise ImmediateResponse( </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove             raise ErrorResponse(
 </s> add             raise ImmediateResponse(
                raise ImmediateResponse(
              """
              try:
                  return (yaml.safe_load(stream), None)
              except ValueError, exc:
                raise ImmediateResponse(
                      content={'detail': 'YAML parse error - %s' % unicode(exc)},
                      status=status.HTTP_400_BAD_REQUEST)
  else:
      YAMLParser = None
  
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/parsers.py