HTTPClient: debug log when performing redirects (#2371)

This will be used to detect the load balancer redirecting to the load
shedder. See also #2362.
This commit is contained in:
NachoSoto authored and GitHub committed 2023-03-23 14:34:14 -07:00
1 parent 47465b01f8
commit 06f80c30a1
7 files changed
+94 -2

No files matched your search

@@ -20,6 +20,7 @@ enum HTTPStatusCode {
case createdSuccess
case redirect
case notModified
case temporaryRedirect
case invalidRequest
case notFoundError
case internalServerError
@@ -32,6 +33,7 @@ enum HTTPStatusCode {
.createdSuccess,
.redirect,
.notModified,
.temporaryRedirect,
.invalidRequest,
.notFoundError,
.internalServerError,
@@ -52,6 +54,7 @@ extension HTTPStatusCode: RawRepresentable {
case .createdSuccess: return 201
case .redirect: return 300
case .notModified: return 304
case .temporaryRedirect: return 307
case .invalidRequest: return 400
case .notFoundError: return 404
case .internalServerError: return 500