From eab2342d91c8d07b804fd749300d9844185a204d Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Mon, 12 Dec 2022 22:18:29 +0100 Subject: [PATCH] use 404 --- server/api/og-image/[url].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/og-image/[url].ts b/server/api/og-image/[url].ts index 347a4312..92916254 100644 --- a/server/api/og-image/[url].ts +++ b/server/api/og-image/[url].ts @@ -79,7 +79,7 @@ export default defineEventHandler(async (event) => { if (!ogImageUrl.startsWith('https')) { // If the og:image is not https, we can't use it throw createError({ - statusCode: 406, + statusCode: 404, // Must be 404 so the srcset can fallback to the default image statusMessage: 'og:image must be https.', }) }