Habitability is defined by the local building code, along with North Carolina's rental law. Local codes often prohibit peeling paint, pest infestations, sewer malfunctions and fire hazards, though some of these prohibitions apply only to multi-family rental units.