Set the lastResponseCode in the case of 4xx and 5xx.

This commit is contained in:
Brent Simmons committed 2026-06-01 20:57:46 -07:00
1 parent 9fdce8612d
commit 43a1442bf4
1 file changed
+2
@@ -346,6 +346,8 @@ import os
return
}
feed.lastResponseCode = statusCode
let transportError = TransportError.httpError(status: statusCode)
let statusDescription = transportError.localizedDescription
let errorMessage = "HTTP \(statusCode) \(statusDescription): \(url.absoluteString)"