responseClass now called `type`