You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add DefaultProblemDetailsWriter supported media types; fix typo (#36836)
* Initial plan
* Add supported media types info for DefaultProblemDetailsWriter; fix typo
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
* Update media types supported by DefaultProblemDetailsWriter
Clarified supported media types for DefaultProblemDetailsWriter. Formatted it so it would be easier to read.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Co-authored-by: Wade Pickett <wpickett@microsoft.com>
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/error-handling-api.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn about error handling in ASP.NET Core APIs with Minimal APIs a
5
5
ai-usage: ai-assisted
6
6
ms.author: wpickett
7
7
monikerRange: '>= aspnetcore-7.0'
8
-
ms.date: 08/15/2025
8
+
ms.date: 03/04/2026
9
9
uid: fundamentals/error-handling-api
10
10
---
11
11
@@ -139,9 +139,18 @@ In the following code, `httpContext.Response.WriteAsync("Fallback: An error occu
139
139
140
140
Theprecedingcode:
141
141
142
-
*Writesanerrormessagewiththefallbackcodeifthe `problemDetailsService` isunabletowritea `ProblemDetails`. Forexample, anendpointwherethe [Acceptrequestheader](https://developer.mozilla.org/docs/Web/HTTP/Headers/Accept) specifies a media type that the `DefaulProblemDetailsWriter` does not support.
142
+
*Writesanerrormessagewiththefallbackcodeifthe `problemDetailsService` isunabletowritea `ProblemDetails`. Forexample, anendpointwherethe [Acceptrequestheader](https://developer.mozilla.org/docs/Web/HTTP/Headers/Accept) specifies a media type that the `DefaultProblemDetailsWriter` does not support.
0 commit comments