Article 41 Vienna Convention on Consular Relations
Personal inviolability of consular officers
1.Consular officers shall not be liable to arrest or detention pending trial, except in the case of a grave crime and pursuant to a decision by the competent judicial authority.
2.Except in the case specified in paragraph 1 of this article, consular officers shall not be committed to prison or be liable to any other form of restriction on their personal freedom save in execution of a judicial decision of final effect.
3.If criminal proceedings are instituted against a consular officer, he must appear before the competent authorities. Nevertheless, the proceedings shall be conducted with the respect due to him by reason of his official position and, except in the case specified in paragraph 1 of this article, in a manner which will hamper the exercise of consular functions as little as possible. When, in the circumstances
mentioned in paragraph 1 of this article, it has become necessary to detain a consular officer, the proceedings against him shall be instituted with the minimum of delay.
See also: Article 40 Vienna Convention on Consular Relations