A building code, or building control, is a set of rules that specify the minimum acceptable level of safety for constructed objects such as buildings and nonbuilding structures.