Switch status code set/get to integer fixes #881

Should be `int`.