EventingFunctionManager GetFunctionAsync throws generic HttpRequestException on error
Description
When attempting to use GetFunctionAsync with a function name that does not exists, I expect that an EventingFunctionNotFoundException should be thrown, but instead System.Net.Http.HttpRequestException is thrown.
When attempting to use GetFunctionAsync with a function name that does not exists, I expect that an EventingFunctionNotFoundException should be thrown, but instead System.Net.Http.HttpRequestException is thrown.
Here is the full error:
I have a test that will reproduces this here: https://review.couchbase.org/c/couchbase-net-client/+/170094/1/tests/Couchbase.IntegrationTests.Management/Management/EventingFunctionManagerTests.cs#144
(Running against 7.0).