Set 404 as defautl status code and set the proper status code fir the response at very same time that the response body
This commit is contained in:
@@ -151,6 +151,7 @@ function getDataview (dataviewBackend) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = dataview;
|
||||
|
||||
next();
|
||||
@@ -174,6 +175,7 @@ function dataviewSearch (dataviewBackend) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = searchResult;
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user