If the OAuth app you set up has been suspended (due to reported abuse, spam, or a mis-use of the API), GitHub will redirect to the registered callback URL using the following parameters to summarize the error:
To solve issues with suspended applications, please contact your site administrator.
If you provide a
redirect_uri that doesn't match what you've registered with your application, GitHub will redirect to the registered callback URL with the following parameters summarizing the error:
To correct this error, either provide a
redirect_uri that matches what you registered or leave out this parameter to use the default one registered with your application.
If the user rejects access to your application, GitHub will redirect to the registered callback URL with the following parameters summarizing the error:
There's nothing you can do here as users are free to choose not to use your application. More often than not, users will just close the window or press back in their browser, so it is likely that you'll never see this error.