---
title: "Abid Ali (@abidali671) | Hashnode"
description: "Full Stack Developer | Next.js, React, TypeScript | Building OG Scope, Digital Dialogue & Meme Tap. Read the latest articles by Abid Ali on Hashnode."
url: "https://hashnode.com/@abidali671"
---

@abidali671

# Abid Ali

@abidali671 · Karachi, Pakistan · Joined October 2026

Full Stack Developer | Next.js, React, TypeScript | Building OG Scope, Digital Dialogue & Meme Tap

[Website](https://www.ogscope.pk/)

## Comments

[Good catch, Tarun, and you're right. As written, a 404 from the API falls through to return res, so crawlers get a 200 and the default card for a post that's gone. That's a soft 404, and it isn't great for search engines or for previews. I'd split it by the API's status: const apiRes = await fetch(\`https://api.acme.com/posts/${match\[1\]}\`); if (apiRes.status === 404) { return new Response(res.body, { status: 404, headers: res.headers }); } if (!apiRes.ok) return res; // 5xx or timeout: fall back to the shell const post = await apiRes.json(); Users still get the SPA's own "not found" view, since it's the same shell, but crawlers now see a real 404, and most platforms won't build a card from it. For 5xx errors and timeouts I'd keep the generic card, so a temporary API problem doesn't wipe out previews. Adding <meta name="robots" content="noindex"> on the 404 path is a nice extra. Thanks for reading closely!](https://hashnode.com/posts/open-graph-tags-in-a-react-vite-spa-why-crawlers-see-your-app-shell-and-three-ways-to-fix-it/6ad1d8df805838e2d93d7ce3/comment/6ad2f96bfc7e53d3b307ce8a#reply-6ad34cc9c002f7921aee1241)

Reply · Article · Oct 17 · [Open Graph Tags in a React + Vite SPA: Why Crawlers See Your App Shell, and Three Ways to Fix It](https://hashnode.com/posts/open-graph-tags-in-a-react-vite-spa-why-crawlers-see-your-app-shell-and-three-ways-to-fix-it/6ad1d8df805838e2d93d7ce3)
