You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpRequestMessageLocalVar.Content = new StringContent(requestContentLocalVar, System.Text.Encoding.UTF8, "application/json");
669
+
}
661
670
using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false))
662
671
{
663
672
string responseContentLocalVar = string.Empty;
@@ -666,7 +675,11 @@ namespace {{packageName}}
666
675
}
667
676
if (!httpResponseMessageLocalVar.IsSuccessStatusCode)
668
677
{
669
-
throw new HttpOperationException(httpRequestMessageLocalVar, httpResponseMessageLocalVar, string.Format("Operation returned an invalid status code '{0}'", httpResponseMessageLocalVar.StatusCode));
678
+
throw new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", httpResponseMessageLocalVar.StatusCode))
679
+
{
680
+
Request = new HttpRequestMessageWrapper(httpRequestMessageLocalVar, requestContentLocalVar),
681
+
Response = new HttpResponseMessageWrapper(httpResponseMessageLocalVar, responseContentLocalVar)
0 commit comments