Add [SampleProblemDetailsWriter](https://github.com/dotnet/AspNetCore.Docs.Samples/pull/144/files) per [this](https://github.com/dotnet/AspNetCore.Docs/pull/29221#pullrequestreview-1419652182) comment Add snippet where it's registered in main. --- #### Document Details ⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.* * ID: 0e03fdf4-b19b-17c3-04f4-336ab6d2ee06 * Version Independent ID: 38515dfb-91a5-b395-db9d-084bbaf095c8 * Content: [Handle errors in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?branch=pr-en-us-29221&view=aspnetcore-7.0) * Content Source: [aspnetcore/fundamentals/error-handling.md](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/error-handling.md) * Product: **aspnet-core** * Technology: **aspnetcore-fundamentals** * GitHub Login: @tdykstra * Microsoft Alias: **riande** --- [Associated WorkItem - 90227](https://dev.azure.com/msft-skilling/Content/_workitems/edit/90227)
Add SampleProblemDetailsWriter per this comment
Add snippet where it's registered in main.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 90227