Regarding the above, its relatively rare in modern times for countries to declare war, with it only happening in a handful of instances.
Most use similar pretexts to what Russia has with Ukraine - although some involve a lot less farcical logic as they don’t typically involve a full-scale invasion of a sovereign state.