mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-01 10:24:40 +08:00
404 code to 200 code with an error code string
404 error without an error code string is inconsistent when compared to all other methods. While on that topic, is there any reason for not using the right http response codes
Sorry for all the issues 😁. Knowing me there's more to come. I'll get on the SHA password encryption as soon as I get my application working enough.
This commit is contained in:
parent
f9ee7d6200
commit
667dce4a94
1 changed files with 2 additions and 2 deletions
|
@ -475,9 +475,9 @@ 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