Exception Handling
This feature allows adding custom Exception Handlers.
app.Features.AddExceptionHandling(...);
Problem Details
Adds an exception handler implementation that returns errors in problem details format. It also adds a middleware that logs exceptions.
c => c.ProblemDetails(typeUrlFormat: "https://my-service.com/errors/{0}")
More to find at RFC 7807 and Handle errors in ASP.NET Core.