A prisoner’s claim that he was confined in an unventilated cell with a non-working toilet for at least seven days states a cause of action for cruel and unusual punishment, the Court of Appeals for the Second Circuit said Friday.

Aaron Willey said he was subjected to a months-long campaign of reprisal for refusing to falsely accuse a fellow inmate of smuggling drugs into the Wende Correctional Facility near Buffalo.