Simplified get_numeric_code
More numeric reply handling