@ 261101.7

261026.16 · ad956a16f00342acdff6441147732891660fd916

A missing path's 404 turns like a coin

The digits spin about five times, slow down, rock once and stop facing the reader. They stay text, with no disc, and stand still under reduced motion. Refusals and other failures keep the plain line, since their message says why.

reading declarations

Changes to links_test.go. All files

links_test.go

@@ -90,6 +90,9 @@ func TestLinksRefusedSayWhy(t *testing.T) { 		if rec.Code != http.StatusForbidden || !strings.Contains(rec.Body.String(), want) { 			t.Errorf("%s: status %d, body %q; want 403 with %q", p, rec.Code, rec.Body.String(), want) 		}+		if strings.Contains(rec.Body.String(), `class="coin"`) {+			t.Errorf("%s: a refusal turns the 404 coin", p)+		} 	} }