Why is it illegal to use land mines and poisonous gases in war?

Can you think of examples when these were used? Do you know if the perpetrators were prosecuted?​