Dloizides.ProblemDetails 0.1.0

dotnet add package Dloizides.ProblemDetails --version 0.1.0
                    
NuGet\Install-Package Dloizides.ProblemDetails -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dloizides.ProblemDetails" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dloizides.ProblemDetails" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Dloizides.ProblemDetails" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dloizides.ProblemDetails --version 0.1.0
                    
#r "nuget: Dloizides.ProblemDetails, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dloizides.ProblemDetails@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dloizides.ProblemDetails&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Dloizides.ProblemDetails&version=0.1.0
                    
Install as a Cake Tool

Dloizides.ProblemDetails

RFC 9457 ProblemDetails for every ASP.NET Core error response (ServiceDefaults 2.0, security floor row 6).

builder.Services.AddDloizidesProblemDetails();
app.UseDloizidesProblemDetails();
Case Response
Unhandled exception 500 application/problem+json with status, title, type, traceId
BadHttpRequestException its own status (for example 413) as ProblemDetails
Empty 4xx/5xx response ProblemDetails for that status; a response that already has a body is left alone
Outside Development no detail, no exception message, no stack trace
Development an exception field with the full exception text
Service IExceptionHandler runs first; this package is the fallback

traceId is the W3C activity id when tracing is on (Tracing.Client sets the 32-character trace id), otherwise the request id. No options.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Dloizides.ProblemDetails:

Package Downloads
Dloizides.ServiceDefaults

Aspire-style service defaults for ASP.NET Core: OpenTelemetry (logging/metrics/tracing) wiring, HTTP resilience + service discovery, standard health-check registration (via ServiceDefaults.HealthChecks), and the platform endpoint map (anonymous /health/live|start|ready Kubernetes probes plus an ACME HTTP-01 no-op). Extracted from ~8 services that had each hand-copied the ServiceDefaults/Extensions.cs; normalizes the PostgressConnection connection-string typo by resolving both the correct (PostgresConnection) and legacy-typo keys.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 146 11/21/2026