Switch status code set/get to integer fixes #881
Merge pull request #886 from Zlender/status_code_integer

Switch status code set/get to integer fixes #881