mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-12-25 11:37:00 +00:00
400 should be 404
This commit is contained in:
parent
cf384cd0fd
commit
0eed33f42f
1 changed files with 1 additions and 1 deletions
|
@ -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' }));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue