11 references to StatusCode
dotnet-svcutil-lib (4)
Metadata\HttpAuthenticationHelper.cs (3)
38((response.StatusCode == HttpStatusCode.Unauthorized) || (response.StatusCode == HttpStatusCode.ProxyAuthenticationRequired))) 56if (webException.Response is HttpWebResponse response && response.StatusCode == HttpStatusCode.Forbidden)
Metadata\MetadaExchangeResolver.cs (1)
270if (webResponse.StatusCode != HttpStatusCode.OK)
Microsoft.ML.Core (2)
Utilities\ResourceManagerUtils.cs (2)
325if (webResponse.StatusCode == HttpStatusCode.Redirect && webResponse.Headers["Location"] == "https://www.microsoft.com/?ref=aka") 328else if (webResponse.StatusCode == HttpStatusCode.MovedPermanently)
PresentationCore (1)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
513if (webResponse.StatusCode == HttpStatusCode.PartialContent)
System.Net.Requests (4)
System\Net\HttpWebRequest.cs (3)
1259if ((int)response.StatusCode > maxSuccessStatusCode || (int)response.StatusCode < 200) 1262SR.Format(SR.net_servererror, (int)response.StatusCode, response.StatusDescription),
System\Net\HttpWebResponse.cs (1)
344if (maxErrorResponseLength < 0 || StatusCode < HttpStatusCode.BadRequest)