I remember there was this one guy who got assigned to a gate in a high crime area. He set a curfew, disallowing anyone going through the gate.
Some of nobles did not like this guy and purposefully sent a royalty through that gate at night. The guy gave order to have him punished with 50 to 100 lashes, or a club or something, and that royalty died I think.
I have seen too many animes and they get mixed up often, but I think that guy eventually became a great general in future though the anime doesn't show it.