You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have similar problem with koa-router (v. 7.4), koa(2.7) i am working with nodemailer, and catching 404 error before like mail sended for user, but want send 200 status after sending mail
mailer().then(() => {
console.log('where is my OK status ??');
ctx.body = {
status: 200,
msg: 'ok',
};
});
};`
Log in my console
POST /sendfeed - 38ms - 404 - hostOrigin -> undefined userAgent -> PostmanRuntime/7.15.2
cookies: no cookies
9330e33a-8c8e-e962-1bfc-fd4dfd93ce8f@my-pc
where is my OK status ??
node.js version: v12.4.0
npm/yarn and version: npm 6.9.0
koa-router
version: 3.2.0koa
version: 2.7.0Code sample:
Expected Behavior:
As there was an exception the response code should be 500
Actual Behavior:
Got a 404, which makes no sense.
Additional steps, HTTP request details, or to reproduce the behavior or a test case:
The text was updated successfully, but these errors were encountered: