You are right about the 21 gun salute. That is reserved for a head of state.
21-gun salutes are fired by naval guns or saluting batteries with artillery pieces for Presidents of the United States, former Presidents of the United States, foreign heads of state and members of reigning royal families.