Soenneker.Dtos.ProblemDetails 11.0.487

Prefix Reserved
dotnet add package Soenneker.Dtos.ProblemDetails --version 11.0.487
                    
NuGet\Install-Package Soenneker.Dtos.ProblemDetails -Version 11.0.487
                    
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="Soenneker.Dtos.ProblemDetails" Version="11.0.487" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dtos.ProblemDetails" Version="11.0.487" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Dtos.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 Soenneker.Dtos.ProblemDetails --version 11.0.487
                    
#r "nuget: Soenneker.Dtos.ProblemDetails, 11.0.487"
                    
#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 Soenneker.Dtos.ProblemDetails@11.0.487
                    
#: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=Soenneker.Dtos.ProblemDetails&version=11.0.487
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.ProblemDetails&version=11.0.487
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Dtos.ProblemDetails

A serializer-friendly problem-details DTO for APIs and clients that do not want a dependency on ASP.NET Core MVC's ProblemDetails type. It supports System.Text.Json.

Install

dotnet add package Soenneker.Dtos.ProblemDetails

Create a problem response

using Soenneker.Dtos.ProblemDetails;

var problem = new ProblemDetailsDto
{
    Type = "https://api.example.com/problems/invalid-order",
    Title = "The order is invalid",
    Status = 400,
    Detail = "At least one line item is required.",
    Instance = "/orders/8f25"
};

problem.Extensions["orderId"] = "8f25";
problem.Extensions["retryable"] = false;

Extension entries are flattened into the top-level JSON object:

{
  "type": "https://api.example.com/problems/invalid-order",
  "title": "The order is invalid",
  "status": 400,
  "detail": "At least one line item is required.",
  "instance": "/orders/8f25",
  "orderId": "8f25",
  "retryable": false
}

All standard members are optional. With System.Text.Json, null omission follows the options supplied to your serializer.

Status is payload data only—it does not set an HTTP response's status code. When deserializing, extension values may materialize as serializer-specific types such as JsonElement, so avoid assuming they round-trip to their original CLR types.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Soenneker.Dtos.ProblemDetails:

Package Downloads
Soenneker.Dtos.Results.Operation

A standardized wrapper for the outcome of an operation, containing either a successful result value or a ProblemDetails describing the error, along with an HTTP status code.

Soenneker.Maui.Admob

A cross-platform library for adding Google Admob ads to MAUI applications

Soenneker.TrustedForm.Blazor

Loads ActiveProspect TrustedForm in Blazor and exposes recording, certificate URL, and finalization controls.

Soenneker.Flywheel.Dashboard

A real-time Blazor dashboard for monitoring and managing Soenneker Flywheel.

Soenneker.Dtos.Results.Api

A generic container for API responses with ProblemDetails support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.487 745 11/18/2026
11.0.486 1,863 11/18/2026
11.0.485 5,350 11/11/2026
11.0.484 624 11/11/2026
11.0.483 8,850 10/26/2026
11.0.482 824 10/26/2026
11.0.481 233 10/26/2026
4.0.480 1,408 10/25/2026
4.0.479 4,115 10/14/2026
4.0.478 804 10/14/2026
4.0.477 771 10/14/2026
4.0.476 136 10/14/2026
4.0.475 127 10/14/2026
4.0.470 835 10/13/2026
4.0.469 691 10/12/2026
4.0.467 912 10/12/2026
4.0.466 1,699 10/11/2026
4.0.465 138 10/11/2026
4.0.464 6,177 9/30/2026
4.0.463 4,960 9/24/2026
Loading failed

Update dependency Soenneker.Attributes.PublicOpenApiObject to 11.0.69 (#1128)