summaryrefslogtreecommitdiff
path: root/src/node/hooks/i18n.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/hooks/i18n.js')
-rw-r--r--src/node/hooks/i18n.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js
index 67815659..1d28b544 100644
--- a/src/node/hooks/i18n.js
+++ b/src/node/hooks/i18n.js
@@ -91,7 +91,7 @@ exports.expressCreateServer = function(n, args) {
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.send('{"'+locale+'":'+JSON.stringify(locales[locale])+'}');
} else {
- res.send(404, 'Language not available');
+ res.status(404).send('Language not available');
}
})