         for (readingListEntryID, localReadingListEntry) in createdReadingListEntries {
             localReadingListEntry.readingListEntryID = NSNumber(value: readingListEntryID)
             localReadingListEntry.isUpdatedLocally = false
+        }
+        
+        for failed in failedReadingListEntries {
+            failed.0.errorCode = failed.1.rawValue
         }
         
         for (_, localReadingListEntry) in deletedReadingListEntries {

                }
                guard let readingListEntryIDs = readingListEntryIDs else {
                    DDLogError("Error creating reading list entry: \(String(describing: createError))")
                    return
                }
                for (index, readingListEntryIDOrError) in readingListEntryIDs.enumerated() {
                    guard index < entries.count, let readingListEntryID = readingListEntryIDOrError.0 else {
                        break
                    }
                    let localReadingListEntry = entries[index].entry
                    createdReadingListEntries[readingListEntryID] = localReadingListEntry
                }
                

        let localReadingListEntriesToUpdate =  try moc.fetch(entriesToCreateOrUpdateFetch)
        
        var createdReadingListEntries: [Int64: ReadingListEntry] = [:]
        var failedReadingListEntries: [(ReadingListEntry, APIReadingListError)] = []
        var deletedReadingListEntries: [Int64: ReadingListEntry] = [:]
        var entriesToAddByListID: [Int64: [(project: String, title: String, entry: ReadingListEntry)]] = [:]
        
