I live in New Jersey and entered into a 1 year lease on September 1st 2017 (In New Jersey). At the time I signed the lease the Landlord informed me that he had a temporary C.O. due to him needing to install a big window on the second floor(3 bedrooms) so that there is a second means of egress. After several issues arose between the landlord and the city (for not being to code) the Landlord informed me in June that we may have to vacate due to this issue. I told him that I was not going to pay rent starting with June because if I had to move it would expensive. A couple days later he told me that he may have a solution and had a court date. After the court date he said he received an extension and the window was finally installed 0n 8/6/2018. My question is, am I entitled to some sort of compensation or back rent for living in a building that was not to code and endangered my family while I was staying there?