Middleware error handling interfaces undefined?


#1

I’ve looked at both:

and:

What’s bugging me is that return to caller and return to client interfaces aren’t called out in the docs. I assume I need to return an error from middleware for both distinctly (e.g. in case a client fails in authentication, I need to raise a 404 to the client and also terminate further handling at this point by telling middleware about it via the return value), but this isn’t explicitly documented, nor is the resulting behaviour for the framework.

Does it terminate further handling? Are there ordering considerations because of this?