diff --git a/lib/document_handler.js b/lib/document_handler.js index 18debf0..48bff43 100644 --- a/lib/document_handler.js +++ b/lib/document_handler.js @@ -18,7 +18,7 @@ DocumentHandler.prototype.handleGet = function(key, response) { } else { winston.warn('document not found', { key: key }); - response.writeHead(400, { 'content-type': 'application/json' }); + response.writeHead(404, { 'content-type': 'application/json' }); response.end(JSON.stringify({ message: 'document not found' })); } };