How to create a general error handler in NET Core using an error handler middleware and custom exceptions Sample code for blog post https://www.fullstackdev.cloud/posts/how-to-create-a-general-error-handler-in-asp-net-core-using-an-error-handler