def code(self, code=None, ret_r=False):
if code or ret_r:<EOL><INDENT>self._code = code<EOL>return self<EOL><DEDENT>return self._code<EOL>
Args:
    code: (Optional) set code
    ret_r: (Optional) force to return Result. Default value is False
returns:
    response code(0-success, others-failure) or self