diff --git a/src/node/handler/APIHandler.js b/src/node/handler/APIHandler.js index 3898daaf5..cd3258252 100644 --- a/src/node/handler/APIHandler.js +++ b/src/node/handler/APIHandler.js @@ -160,7 +160,7 @@ exports.handle = async function(apiVersion, functionName, fields, req, res) // say goodbye if this is an unknown function if (!(functionName in version[apiVersion])) { - // no status code?! + res.statusCode = 404; res.send({code: 3, message: "no such function", data: null}); return; }