Ibn Battuta, a fourteenth century North African world traveler, spent some time in the employ of Mohammed ibn Tughluq, the fabulously wealthy sultan of Delhi. The Rehla, Ibn Battuta's account of his travels, contains a section on bad things about the Sultan and a section on good things about the Sultan. One of the good things he describes is an incident where Mohammed struck a young man with no legal justification for doing so. The young man took the case to court, the Sultan made no attempt to block it, and the verdict was that the victim was entitled to either monetary compensation or retaliation. He chose the latter, struck the Sultan, and, ibn Battuta tells us, he saw the Sultan's turban fall to the ground. Reading the passage, it is clear that the author thought that was how rulers ought to behave, holding themselves subject to the same law as everyone else, but usually didn't, hence that ibn Tughluq's willingness to accept a legal judgement against himself was admirable.
I was reminded of the passage by recent news stories about unarmed men shot dead by police under circumstances where, it is alleged, there was no legal justification. Such incidents occasionally lead to the policeman responsible being disciplined. They practically never, so far as I can tell, result in his being charged with homicide, tried, and, if convicted, jailed.
It would be nice if our legal system could at least come up to the standards of a fourteenth century sultan.