1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-11-23 17:50:19 +01:00

400 should be 404

This commit is contained in:
John Crepezzi 2011-11-18 16:50:23 -05:00
parent cf384cd0fd
commit 0eed33f42f

View file

@ -18,7 +18,7 @@ DocumentHandler.prototype.handleGet = function(key, response) {
} }
else { else {
winston.warn('document not found', { key: key }); 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' })); response.end(JSON.stringify({ message: 'document not found' }));
} }
}; };