From d6c763f2d7e1827bb7bd2e79569a5c6b6402479a Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Mon, 9 Aug 2021 19:13:05 +0000 Subject: [PATCH] Meta returns 404 if resource is not found. --- apps/cic-meta/scripts/server/handlers.ts | 2 +- apps/cic-meta/scripts/server/server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cic-meta/scripts/server/handlers.ts b/apps/cic-meta/scripts/server/handlers.ts index 08bf2d9b..949ef61e 100644 --- a/apps/cic-meta/scripts/server/handlers.ts +++ b/apps/cic-meta/scripts/server/handlers.ts @@ -147,7 +147,7 @@ function handleClientMergeGet(db, digest, keystore) { doh(e); }); }).catch((e) => { - console.error('mesage', e); + console.error('message', e); doh(e); }); }); diff --git a/apps/cic-meta/scripts/server/server.ts b/apps/cic-meta/scripts/server/server.ts index 6107bdf5..ebe3cafc 100755 --- a/apps/cic-meta/scripts/server/server.ts +++ b/apps/cic-meta/scripts/server/server.ts @@ -205,7 +205,7 @@ async function processRequest(req, res) { if (content === undefined) { console.error('empty content', data); - res.writeHead(400, {"Content-Type": "text/plain"}); + res.writeHead(404, {"Content-Type": "text/plain"}); res.end(); return; }