Alas, there is no written up code of laws for Omrazir or the Sirdabi Caliphate more generally. Someday I will have time to seriously work on lore stuff again, but still more alas and also alack, that time is not now. :(
As pof Ighlaf and Matty write, there is a lot of work to be done on the law enforcement and reputation code, which are still in a pretty basic (and yes, sometimes buggy) state. The White City, while technically not beyond the law, would tend to be pretty much left to its own devices, and there shouldn't be any negative reputation incurred from self-defense. On the other hand, just spending any significant amount of time in the White City should affect one's reputation to some degree, and even if a person didn't gain a reputation as a criminal they *should* gain one as a lowlife or part of an overall Less Desirable class of citizens! That said, I don't know of any instances where actively-played NPCs have treated any PC differently on account of reference to their coded reputation.
Nevertheless, immediate self-defense aside, it can generally be said from an IC standpoint that it's frowned on for citizens to take the law into their own hands on city streets and more public spaces in general, such as marketplaces, parks, plazas, etc. These are both in theory and practice under the direct legal jurisdiction of the Lion Guard and/or whatever city watch organization is present (if any), in Omrazir's case the Customs Inspectors.
In neighborhoods like Dampstone Close or the Ferenghi Quarter or wherever else, it's a somewhat different story. While still under the jurisdiction of the law, much of the immediate enforcement of these laws is left to the residents themselves. In many cases these neighborhoods have what is essentially their own neighborhood watch made up of locals that helps to keep order. These watch groups might take care of such things as removing intruders, apprehending thieves, stopping vandalism, and a number of other relatively minor issues, but especially in the case of more serious crimes they will typically turn the perpetrator over to the authorities.
Neighbors also keep watch on one another's behavior, and may bring people in their neighborhood to court for various moral infractions such as adultery, spousal abuse, immodesty, dishonest business dealings, excessive noise, alcohol consumption, or general public disorder. Obviously one's standards for these things will vary somewhat from one neighborhood to the next. Most people who are brought to court will stand before a qadi and have a chance to present their case to a jury. Punishments more typically would involve fines, corporal punishment, behavioral restrictions, or various forms of public shaming than any kind of prolonged imprisonment, except in the case of serious crimes.
Overall, law in Omrazir is a mix of Azadi law, based on moral and ethical standards and some more general legalism addressed in the Perfected Song, and caliphal law that basically covers anything else. Individuals belonging to minority religious groups may in some limited instances be allowed to govern the behavior of their own members, particularly within their own neighborhoods, but no one is considered as standing entirely outside of Azadi/caliphal law.
P.S. MATTY THE BARBARIAN, being naked or indecently exposed should definitely net you some negative consequences even if it's not coded that way, SO NOW I AM WATCHING YOU.