The United Nations secretary-general warned on Friday that international law was eroding before the world's eyes, during a speech celebrating the 80th year anniversary of the World Court.