Plugin POST route 404...But logic is executed...HUH?

Koa defaults all responses to code 404, I would suggest you return a JSON object instead of using the ctx.message / ctx.code.

something like:

return {
  message: 'your message here'
}

This will automatically make koa use the 200 code and return the json you set. If you need to send an error I’d suggest using something like:

return ctx.badRequest('some message') 

This comes from the boom middleware, which will automatically set the code properly, you can find all the options here: