Fix trying to return status code as an integer/single char