Make detect return 404 instead of 400
This commit is contained in:
parent
4dfe43918f
commit
546c9029aa
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ export const get: APIRoute = async ({ params }) => {
|
||||||
);
|
);
|
||||||
} catch {
|
} catch {
|
||||||
return new Response(JSON.stringify({ error: "Couldn't detect instance" }), {
|
return new Response(JSON.stringify({ error: "Couldn't detect instance" }), {
|
||||||
status: 400,
|
status: 404,
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue