That suggests you tried to reuse the ?code to get an access token.
A ?code can only be exchanged for an access token once.