Diplomats are considered not susceptible to lawsuit or prosecution under the host country's laws. Modern diplomatic immunity was codified as international law in the Vienna Convention on Diplomatic Relations. Many principles of diplomatic immunity are now considered to be customary law.