Merge pull request #145 from louis-lau/patch-1

404 code to 200 code with an error code string
This commit is contained in:
Andris Reinman 2019-08-19 04:30:44 +02:00 committed by GitHub
commit 3f5a205af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -477,7 +477,8 @@ module.exports = (db, server) => {
if (!r.deletedCount) {
res.status(404);
res.json({
error: 'Filter was not found'
error: 'Filter was not found',
code: 'FilterNotFound'
});
return next();
}