Discourse Moderation Guide. Can be changed to suit your forum of course and I would encourage this.
There is some info in this topic, including some helpful posts from @simon about the related default settings that can be overridden:
I would think that the consequences are forum-specific. My hosted forum that I am admin of has an explicit Code of Conduct that was written by forum staff and I also re-wrote their Moderation Guide to suit the forum specifically.