diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp index 3e968d0a0..ba9eba010 100644 --- a/src/libsync/networkjobs.cpp +++ b/src/libsync/networkjobs.cpp @@ -787,6 +787,7 @@ bool JsonApiJob::finished() if (reply()->error() != QNetworkReply::NoError) { qCWarning(lcJsonApiJob) << "Network error: " << path() << errorString() << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute); + statusCode = reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); emit jsonReceived(QJsonDocument(), statusCode); return true; }