document return code