Every written or oral residential lease includes an implied right to a livable, safe and sanitary apartment.
If a landlord breaches this implied warranty of habitability, the tenant may sue for a rent reduction.
The tenant may also withhold rent, but in response, the landlord may sue the tenant for non-payment of rent. In such case, the tenant may countersue for breach of the warranty.