def general_value(value):
    """Checks if value is generally valid 
    
        Returns:
            200 if ok,
            700 if ',' in value,
            701 if '\n' in value"""

    if ',' in value:
        return 700
    elif '\n' in value:
        return 701
    else:
        return 200