Switch status code set/get to integer fixes #881

Also, should be `int|string`.