Return code check accepts a return code as argument