mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 17:47:07 +08:00
Merge pull request #145 from louis-lau/patch-1
404 code to 200 code with an error code string
This commit is contained in:
commit
3f5a205af5
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue