From dff6be95fcaf1597addb1a5345d4949b3e3ed830 Mon Sep 17 00:00:00 2001 From: Ricardo Boss Date: Thu, 4 Apr 2024 03:41:42 +0200 Subject: [PATCH] Don't throw for 3xx response codes --- packages/kiota_http/lib/src/http_client_request_adapter.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kiota_http/lib/src/http_client_request_adapter.dart b/packages/kiota_http/lib/src/http_client_request_adapter.dart index b5a39b9..860827b 100644 --- a/packages/kiota_http/lib/src/http_client_request_adapter.dart +++ b/packages/kiota_http/lib/src/http_client_request_adapter.dart @@ -89,7 +89,7 @@ class HttpClientRequestAdapter implements RequestAdapter { http.StreamedResponse response, ErrorMappings? errorMapping, ) async { - if (response.statusCode >= 200 && response.statusCode < 300) { + if (response.statusCode >= 200 && response.statusCode < 400) { return; }