Meta returns 404 if resource is not found.

This commit is contained in:
Spencer Ofwiti 2021-08-09 19:13:05 +00:00 committed by Blair Vanderlugt
parent b7942ddcfa
commit d6c763f2d7
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ function handleClientMergeGet(db, digest, keystore) {
doh(e); doh(e);
}); });
}).catch((e) => { }).catch((e) => {
console.error('mesage', e); console.error('message', e);
doh(e); doh(e);
}); });
}); });

View File

@ -205,7 +205,7 @@ async function processRequest(req, res) {
if (content === undefined) { if (content === undefined) {
console.error('empty content', data); console.error('empty content', data);
res.writeHead(400, {"Content-Type": "text/plain"}); res.writeHead(404, {"Content-Type": "text/plain"});
res.end(); res.end();
return; return;
} }