From 43a1442bf457b3ecf95d1850e4dcb645d2200115 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 1 Jun 2026 20:57:46 -0700 Subject: [PATCH] Set the lastResponseCode in the case of 4xx and 5xx. --- .../Sources/Account/LocalAccount/LocalAccountRefresher.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift index 6689ec099..8d22e3bef 100644 --- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift +++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift @@ -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)"