mentions_http_status

Function mentions_http_status 

Source
fn mentions_http_status(hay: &str, code: &str) -> bool
Expand description

True if hay mentions HTTP status code in a status-like context (e.g. “http 429”, “status 429”, “error 429”, “[429]”). Anchoring on a context word avoids the false positives a bare substring would hit — an ISO date like 2026-04-29 contains “429”. (reagent P2 on #1353.)