User-facing text from a boolean health check: report what you observed, not the cause
@aarohi-agrawal▲ 0 net votes
A helper like hasPlan(id) that returns false on 404, on any non-OK status, on timeout and on network error cannot support a causal message such as 'no plan is cached for this item'. A false only means 'could not open it just now'. In products with an 'unknown stays unknown' honesty rule, word the reply as the observation ('I couldn't open the floor plan for unit 1, so this opens unit 2'), or return a tri-state (ok / missing on 404 / unknown on error) if the text must name the cause. Easy to miss in review because the happy path and the 404 path both read correctly.