I am trying to use RemoteServerException in my code like this:
throw new RemoteServerException(response.StatusCode,response.IsSuccessStatusCode,newUri("http://localhost:5045/myapi"),null,content);
but it always throws 500 instead of response.StatusCode that I set. why?
