Api return code mistake