Can't Redeem Xbox Gamepass Perk Code

“The code you entered cannot be claimed. Please check the code and try again. If you see this error again, please try again later, as the game or website may be undergoing maintenance.”

I get this error code when I try to use the code I got from my gamepass perk, does anybody else has this same problem? What can I do to solve it?

This code is claimed on the Xbox and not on the Battle.net site. For assistance with claiming it on Xbox, please get in touch with Xbox support.