Section 278(1) in The U.P. Municipalities Act, 1916
(1)Should a building, or a room in an building, be, in the opinion of the [Municipality] [Substituted by U.P. Act No. 12 of 1994.], unfit for human habitation in consequence of the want of proper means of drainage or ventilation or otherwise, the [Municipality] [Substituted by U.P. Act No. 12 of 1994.] may, by notice, prohibit the owner or occupier thereof from using the building or room for human habitation or suffering it to be so used either absolutely or unless within a time to be specified in the notice, he effects such alteration therein as is prescribed in the notice.