According to the 34-page Massachusetts Sanitary Code (105 CMR 410.000), landlords must meet minimum standards of habitability.
Tenants are entitled to certain standards in exchange for their rent, including:
If a unit does not meet these requirements, tenants have the right to request their landlord to remedy the issue within a reasonable time frame.
Author's summary: Massachusetts renters have rights under the Sanitary Code.