JorgeCostaMacia.Http.ProblemDetails
5.2.1-dev.7
Prefix Reserved
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
<PackageReference Include="JorgeCostaMacia.Http.ProblemDetails" Version="5.2.1-dev.7" />
<PackageVersion Include="JorgeCostaMacia.Http.ProblemDetails" Version="5.2.1-dev.7" />
<PackageReference Include="JorgeCostaMacia.Http.ProblemDetails" />
paket add JorgeCostaMacia.Http.ProblemDetails --version 5.2.1-dev.7
#r "nuget: JorgeCostaMacia.Http.ProblemDetails, 5.2.1-dev.7"
#:package JorgeCostaMacia.Http.ProblemDetails@5.2.1-dev.7
#addin nuget:?package=JorgeCostaMacia.Http.ProblemDetails&version=5.2.1-dev.7&prerelease
#tool nuget:?package=JorgeCostaMacia.Http.ProblemDetails&version=5.2.1-dev.7&prerelease
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.
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 bare400with 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.
- Repository: github.com/JorgeCostaMacia/http-dotnet
- Issues & requests: open an issue
- Contributing: CONTRIBUTING.md
- Security: report a vulnerability
Author: Jorge Costa Maciá
| Product | Versions 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. |
-
net10.0
- FluentValidation (>= 12.2.0)
- JorgeCostaMacia.DDD.Exception (>= 11.1.0)
- JorgeCostaMacia.Http (>= 5.2.1-dev.7)
-
net11.0
- FluentValidation (>= 12.2.0)
- JorgeCostaMacia.DDD.Exception (>= 11.1.0)
- JorgeCostaMacia.Http (>= 5.2.1-dev.7)
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 |