
BruceW.38230 (Customer) asked a question.
It is mentioned in the oauth2 specification that when the resource owner clicks on the cancel or deny button in the Authorize page, the auth server should redirect to the client with an error code. How do you do that? How would you make the auth server send a redirect with an error code?
FYI - I already created a case for Okta Support. I am just trying my luck here if someone knows right away

Hello @BruceW.38230 (Customer),
I noticed you have an open case on this issue. Were they able to help you with this?
Regards,
Natalia
Okta Inc.
They were not able to give an advice with regards to my case. Please see my comment below
They were not able to give an advice with regards to my case
So I am not using the Okta sign-in widget since I created my own sign-in page hosted in my own server. I am using Okta APIs to facilitate with login session and authorization. My codes are using /api/v1/authn API to create a login session for the user, and then my codes will call /oauth2/{oktaApiAuthServerId}/v1/authorize API passing the sessionToken to initiate the OAuth process. That handles the Authorize button action.
What I am not sure how to handle is the Cancel (Deny) button.