At least some content in this article is derived from information featured in Harry Potter: Hogwarts Mystery. Spoilers will be present within the article.
The Japanese wizard's code was a social code of ethics adopted by the wizarding society of Japan. To be found betraying the wizard's code was a terrible disgrace, the individual in question being subject to social stigma and ostracism, and even being subject to judicial action by the Japanese Ministry of Magic.
One part of this code forbade "illegal practices", such as practising Dark Magic, or breaking the International Statute of Secrecy. If someone was caught breaking this law, this person would face trial at the Ministry. Moreover, if this person was also a student from Mahoutokoro (in which one's school uniform was bewitched to turn white as an indication that that student had betrayed the code), it would lead to instant expulsion.
Behind the scenes
- The wizard's code is reminiscent of the anthropologic concept of an honor-shame culture which is, in the real world, associated with societies strongly influenced by Confucianism (among them, Japan). Indeed, historically, the samurai lived by a strict honour code (Bushido), that stressed frugality, loyalty, mastery of martial arts, and honour to the death.
- Pottermore (First mentioned)
- Wizarding World (Mentioned only)
- Harry Potter: Hogwarts Mystery (Mentioned only)