HTTPClient: don't verify 4xx/5xx responses (#2322)

This commit is contained in:
NachoSoto authored and GitHub committed 2023-03-07 09:48:15 -08:00
1 parent 920f3fe4e3
commit 030d50f1a6
4 files changed
+10 -4

No files matched your search

@@ -78,7 +78,7 @@ extension HTTPStatusCode: Codable {}
extension HTTPStatusCode {
var isSuccessfulResponse: Bool {
return 200...299 ~= self.rawValue
return 200...399 ~= self.rawValue
}
var isServerError: Bool {