Hello,
I am running into the issue that the third-party service I call via the http sink does return an 403 error code instead of the standard 401 when the access token is expired. This leads to the issues that the http sink is not able to renew the access token after it expires.
It would be very helpful if the error codes would be configurable. I was thinking about a list like this:
"oauth2.renew.token.on.status.codes": "401,403"
The default value could be "401" to avoid breaking changes.
I would be willing to contribute a pull request for this feature.