Game Code not working

Hello,bought halo 5 legendary edition, and the code isn’t working. i put it in (triple checked) and a little yellow message says “Code not found. try re - entering it”
and not really sure where to go from here.