Switch status code set/get to integer fixes #881

Please fix the aignment.