Hi,
I'm making an api call and trying to modify the status code in the https response but the response is failing without returning a status code and I'm also getting a ERR_TUNNEL_CONNECTION_FAILED.
I can see my https request coming in. Also managed to modify/add headers on the response to test if my code in the ScriptEditor works - works fine.
NOTE: The status code changes also works fine for http request.
I am probably missing something simple, here is the code below. For testing I also checked other https calls from different sites and the same is happening.
In OnBeforeResponse I have: oSession.responseCode = 500;
Any ideas?
Thanks