American building codes set a minimum, not an ideal. The Massachusetts building code states its purpose: “to establish the minimum requirements to safeguard the public health, safety and general welfare.”
In everyday American speech, the question asked about a building, a deck or a wiring job is whether it is “up to code.”