From 0eed33f42f3e70ee098eb10d94ab3c23b487e43d Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Fri, 18 Nov 2011 16:50:23 -0500 Subject: [PATCH] 400 should be 404 --- lib/document_handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' })); } };