Section 287(2)(b) in The U.P. Municipalities Act, 1916
(b)except when it is in this Act or in rules or bye-laws otherwise expressly provided, no building which is used as a human dwelling shall be so entered, except with the consent of the occupier thereof, without going the said occupier not less than four hours previous written notice of the intention to make such entry; and