Your redirect URI is pointing to https://dev.battle.net. If you are creating your own application it should point to your app’s URL, even if it is a local one like 127.0.0.1:3000/auth/callback or something.
The correct URI depends on your app and the OAuth2 implementation you are using.
Also note it must be registered under yout client_credentials allowed redirect URIs.