1 write to StatusCode
System.Net.Http (1)
System\Net\Http\HttpRequestException.cs (1)
35
StatusCode
= statusCode;
17 references to StatusCode
GenerateRulesMissingDocumentation (1)
Program.cs (1)
135
Console.WriteLine($"##[warning]Failed while checking '{helpLink}' (${e.
StatusCode
}, ${e.HttpRequestError}): ${e.Message}");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
ServerTests.cs (4)
217
Assert.Equal(StatusCodes.Status500InternalServerError, (int)ex.
StatusCode
);
222
Assert.Equal(StatusCodes.Status500InternalServerError, (int)ex.
StatusCode
);
236
Assert.Equal(StatusCodes.Status418ImATeapot, (int)ex.
StatusCode
);
241
Assert.Equal(StatusCodes.Status418ImATeapot, (int)ex.
StatusCode
);
Microsoft.DotNet.Internal.SymbolHelper (12)
SymbolPromotionHelper.cs (7)
47
bool 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;
162
if (ex is HttpRequestException httpEx && httpEx.
StatusCode
== HttpStatusCode.BadRequest)
SymbolUploadHelperFactory.cs (5)
109
httpException.
StatusCode
== HttpStatusCode.RequestTimeout
110
|| httpException.
StatusCode
== HttpStatusCode.TooManyRequests
111
|| httpException.
StatusCode
== HttpStatusCode.BadGateway
112
|| httpException.
StatusCode
== HttpStatusCode.ServiceUnavailable
113
|| httpException.
StatusCode
== HttpStatusCode.GatewayTimeout);