Allow injecting response class.