Skip to content

Commit fa04e46

Browse files
committed
fix: correct stale hardcoded status count (70) to match actual 62-code dataset
index.html shipped a static 'statusText' badge and 'resultCount' label hardcoded to 70 codes / 70 of 70, left over from an earlier version of the dataset. app.js has always contained 62 IANA-registered codes (matching the README), and overwrites these values at runtime, but the static markup shown before/without JS displayed the wrong count.
1 parent a699da4 commit fa04e46

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6+
7+
## [1.0.1] - 2026-09-06
8+
9+
### Fixed
10+
11+
- Corrected the hardcoded status count in `index.html` (`statusText` badge and
12+
`resultCount` label), which was stuck at "70 codes" / "70 of 70" from an
13+
earlier iteration of the dataset. The actual dataset has always been the 62
14+
IANA-registered status codes described in the README, and `app.js` already
15+
computed the correct number at runtime — but the static markup shown before
16+
JavaScript finishes running (or if it fails to load) displayed the wrong,
17+
inflated count. Both strings now read "62 codes" / "62 of 62" to match the
18+
real data.

‎index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<span class="spacer"></span>
2929

3030
<span id="statusBadge" class="badge" role="status" aria-live="polite" title="Codes shown">
31-
<span class="status-dot" aria-hidden="true"></span><span id="statusText">70 codes</span>
31+
<span class="status-dot" aria-hidden="true"></span><span id="statusText">62 codes</span>
3232
</span>
3333

3434
<button class="btn btn--icon" data-shortcut-help title="Keyboard shortcuts (?)" aria-label="Keyboard shortcuts">
@@ -84,7 +84,7 @@ <h2 class="pane-title">Which code should I use?</h2>
8484
<section class="panel list-panel rise" aria-label="Status codes">
8585
<div class="pane-head">
8686
<h2 class="pane-title">Status codes</h2>
87-
<span id="resultCount" class="muted pane-meta mono">70 of 70</span>
87+
<span id="resultCount" class="muted pane-meta mono">62 of 62</span>
8888
</div>
8989

9090
<div id="codeList" class="code-list"></div>

0 commit comments

Comments
 (0)