Looking for HttpApiMiddleware Examples for Error Handling and Logging

Are there examples of HttpApiMiddleware anywhere that need to run around or just after the effect? Basically I want to write middleware that catches all non-HTTP errors, logs them, and then returns an InternalServerError, instead. All of the examples in the platform readonly only really do things with the request itself, before it's handled.
Was this page helpful?