Make detect return 404 instead of 400

This commit is contained in:
Nikita Karamov 2023-03-18 04:46:28 +01:00
parent 4dfe43918f
commit 546c9029aa
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD

View file

@ -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",
},