From 546c9029aa220331ca73ba6dcda916d1e54c6fda Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 18 Mar 2023 04:46:28 +0100 Subject: [PATCH] Make detect return 404 instead of 400 --- src/pages/api/detect/[host].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/detect/[host].ts b/src/pages/api/detect/[host].ts index c012ac4..388088b 100644 --- a/src/pages/api/detect/[host].ts +++ b/src/pages/api/detect/[host].ts @@ -173,7 +173,7 @@ export const get: APIRoute = async ({ params }) => { ); } catch { return new Response(JSON.stringify({ error: "Couldn't detect instance" }), { - status: 400, + status: 404, headers: { "Content-Type": "application/json", },