(b) (1) Where discriminatory conduct prohibited by this subdivision has occurred, such person or family shall have a cause of action in any court of appropriate jurisdiction for compensatory and punitive damages, with such punitive damages not exceeding two thousand dollars for each offense, and declaratory and injunctive relief; and (2) in all actions brought under this section, reasonable attorneys' fees as determined by the court may be awarded to a prevailing party, provided, however, that a prevailing defendant in order to recover such reasonable attorneys' fees must make a motion requesting such fees and show that the action or proceeding brought was frivolous. In order to find the action or proceeding to be frivolous, the court must find one or more of the following: (i) the action was commenced, used or continued in bad faith, solely to delay or prolong the resolution of the litigation or to harass or maliciously injure another; or (ii) the action was commenced or continued in bad faith without any reasonable basis and could not be supported by a good faith argument for an extension, modification or reversal of existing law. If the action or proceeding was promptly discontinued when the party or attorney learned or should have learned that the action or proceeding lacked such a reasonable basis, the court may find that the party or the attorney did not act in bad faith.
(c) Nothing in this section shall be construed as limiting the ability of a person, firm or corporation owning or managing a building used for dwelling purposes, or the agent of such person, firm or corporation, from applying reasonable standards not based on or derived from domestic violence victim status in determining the eligibility of a person or family seeking to rent a residential unit.
(d) This section shall not apply to buildings used for dwelling purposes that are owner occupied and have two or fewer residential units. 3. A person, firm, or corporation owning or managing a building used for dwelling purposes or agent of such person, firm or corporation shall not be civilly liable to other tenants, guests, invitees, or licensees arising from reasonable and good faith efforts to comply with this section. 4. Nothing in this section shall be construed as prohibiting a person, firm or corporation owning or managing a building used for dwelling purposes, or the agent of such person, firm or corporation, from:
(a) providing or preserving a rental preference in any public or private housing for victims of domestic violence;
(b) providing any other assistance to victims of domestic violence in obtaining or retaining any public or private housing; or
(c) responding to an inquiry or request by an applicant, tenant, or leaseholder who is a victim of domestic violence. 5. Nothing in this section shall be construed as prohibiting a municipality from retaining or promulgating local laws or ordinances imposing additional or enhanced protections prohibiting discrimination against victims of domestic violence. 6. Nothing in this section shall be construed as limiting, diminishing, or otherwise affecting any rights under existing law.