I'm trying to do a basic auth middleware that would prevent upgrading the HTTP request if there is some missing token in headers.
Right now this library "Swallows" all the errors. I see it emitting them in debug, but I can't handle them as part of my koa error handler.
How can I prevent the upgrade, or throw an error?