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; }