Response constructor needs to cast to integer not string fixes #881