A common warrior's code is to strive to uphold one's honor at any cost, and if you fail, to rather die than submit to a humiliating defeat. Exemplified in the Bushido code of the Japanese samurai and their obligation to commit ritual suicide, seppuku, if they failed in any serious way to uphold its obligations and tenets.