JorgeCostaMacia.Http.ProblemDetails 5.2.1-dev.7

Prefix Reserved
This is a prerelease version of JorgeCostaMacia.Http.ProblemDetails.
There is a newer version of this package available.
See the version list below for details.
dotnet add package JorgeCostaMacia.Http.ProblemDetails --version 5.2.1-dev.7
                    
NuGet\Install-Package JorgeCostaMacia.Http.ProblemDetails -Version 5.2.1-dev.7
                    
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="JorgeCostaMacia.Http.ProblemDetails" Version="5.2.1-dev.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JorgeCostaMacia.Http.ProblemDetails" Version="5.2.1-dev.7" />
                    
Directory.Packages.props
<PackageReference Include="JorgeCostaMacia.Http.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 JorgeCostaMacia.Http.ProblemDetails --version 5.2.1-dev.7
                    
#r "nuget: JorgeCostaMacia.Http.ProblemDetails, 5.2.1-dev.7"
                    
#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 JorgeCostaMacia.Http.ProblemDetails@5.2.1-dev.7
                    
#: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=JorgeCostaMacia.Http.ProblemDetails&version=5.2.1-dev.7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=JorgeCostaMacia.Http.ProblemDetails&version=5.2.1-dev.7&prerelease
                    
Install as a Cake Tool

JorgeCostaMacia.Http.ProblemDetails

RFC 7807 ProblemDetails, enriched — consistent error responses for ASP.NET Core that add requestId, traceId, nodeId and domain aggregate metadata (aggregateId / aggregateCode / aggregateType), plus per-field errors for validation and bad-request failures, all following your JSON naming policy.

NuGet Downloads Build License


Install

dotnet add package JorgeCostaMacia.Http.ProblemDetails

Usage

using JorgeCostaMacia.Http.ProblemDetails.Infrastructure;

builder.Services.AddProblemDetails(options => options.WithDefaults());

Every error response gets requestId, traceId and nodeId. A DomainException contributes its aggregate metadata (and, for a ValidationException, a per-field errors dictionary); a BadHttpRequestException contributes errors describing missing/invalid JSON fields. All keys follow the app's configured JsonNamingPolicy.

Note: to have Minimal-API model-binding failures (missing/invalid request body) reach this handler as a BadHttpRequestException — instead of a bare 400 with no body — enable it on the app: csharp builder.Services.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true);

The ProblemDetails record (implementing IResponseHttp) is also provided as the canonical response shape for documentation and typed clients.

Requirements

The .NET 10 or .NET 11 SDK.

Depends on JorgeCostaMacia.Http, JorgeCostaMacia.DDD.Exception and the ASP.NET Core shared framework.

About

JorgeCostaMacia.Http.ProblemDetails is part of http-dotnet — extensions for ASP.NET Core, each scoped to a single concern and reusable across your services. An independent project, not affiliated with Microsoft or the ASP.NET Core project.

Author: Jorge Costa Maciá

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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.2.1 63 12/3/2026
5.2.1-dev.9 44 12/3/2026
5.2.1-dev.8 44 12/3/2026
5.2.1-dev.7 45 12/3/2026
5.2.1-dev.6 41 12/3/2026
5.2.0 57 12/3/2026
5.1.2-dev.4 42 12/3/2026
5.1.1 165 11/9/2026
5.1.0 104 11/8/2026
5.0.1 104 11/8/2026
5.0.0 98 11/8/2026
4.1.8 312 10/27/2026
4.1.7 119 10/27/2026
4.1.6 147 10/22/2026
4.1.5 118 10/22/2026
4.1.4 139 10/16/2026
4.1.3 121 10/14/2026
4.1.2 122 10/12/2026
4.1.1 118 10/8/2026
4.1.0 137 10/7/2026
Loading failed