1 write to StatusCode
System.Net.Http (1)
System\Net\Http\HttpRequestException.cs (1)
35StatusCode = statusCode;
17 references to StatusCode
GenerateRulesMissingDocumentation (1)
Program.cs (1)
135Console.WriteLine($"##[warning]Failed while checking '{helpLink}' (${e.StatusCode}, ${e.HttpRequestError}): ${e.Message}");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
ServerTests.cs (4)
217Assert.Equal(StatusCodes.Status500InternalServerError, (int)ex.StatusCode); 222Assert.Equal(StatusCodes.Status500InternalServerError, (int)ex.StatusCode); 236Assert.Equal(StatusCodes.Status418ImATeapot, (int)ex.StatusCode); 241Assert.Equal(StatusCodes.Status418ImATeapot, (int)ex.StatusCode);
Microsoft.DotNet.Internal.SymbolHelper (12)
SymbolPromotionHelper.cs (7)
47bool isRetryable = (httpException.StatusCode == HttpStatusCode.Unauthorized && args.AttemptNumber == 0) // In case the token was grabbed from cache and died shortly. Retry only once in this case. 48|| httpException.StatusCode == HttpStatusCode.RequestTimeout 49|| httpException.StatusCode == HttpStatusCode.TooManyRequests 50|| httpException.StatusCode == HttpStatusCode.BadGateway 51|| httpException.StatusCode == HttpStatusCode.ServiceUnavailable 52|| httpException.StatusCode == HttpStatusCode.GatewayTimeout; 162if (ex is HttpRequestException httpEx && httpEx.StatusCode == HttpStatusCode.BadRequest)
SymbolUploadHelperFactory.cs (5)
109httpException.StatusCode == HttpStatusCode.RequestTimeout 110|| httpException.StatusCode == HttpStatusCode.TooManyRequests 111|| httpException.StatusCode == HttpStatusCode.BadGateway 112|| httpException.StatusCode == HttpStatusCode.ServiceUnavailable 113|| httpException.StatusCode == HttpStatusCode.GatewayTimeout);