Can I change an error to a warning message or vice-versa after defining it in an autocomplete rule?

No, you can't change the message type after creating the rule. You have to create a rule with the supporting rule type.