diff --git a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs index 49b2a61a1fd110..e156ddd03420c8 100644 --- a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs +++ b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs @@ -1290,7 +1290,7 @@ public async Task GetAsync_SetAutomaticDecompression_ContentDecompressed_Deflate try { using HttpResponseMessage response = await client.GetAsync(uri); - if (response.StatusCode is HttpStatusCode.GatewayTimeout or HttpStatusCode.BadGateway) + if (response.StatusCode is HttpStatusCode.GatewayTimeout or HttpStatusCode.BadGateway or HttpStatusCode.ServiceUnavailable) { // Ignore the erroneous status code, the test depends on an external server that is out of our control. _output.WriteLine(response.ToString());