Soenneker.Dtos.ProblemDetails 4.0.480

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

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.485 1,281 11/11/2026
11.0.484 430 11/11/2026
11.0.483 8,578 10/26/2026
11.0.482 816 10/26/2026
11.0.481 220 10/26/2026
4.0.480 1,398 10/25/2026
4.0.479 3,968 10/14/2026
4.0.478 798 10/14/2026
4.0.477 763 10/14/2026
4.0.476 130 10/14/2026
4.0.475 120 10/14/2026
4.0.470 826 10/13/2026
4.0.469 686 10/12/2026
4.0.467 907 10/12/2026
4.0.466 1,688 10/11/2026
4.0.465 135 10/11/2026
4.0.464 6,172 9/30/2026
4.0.463 4,953 9/24/2026
4.0.461 4,003 9/15/2026
4.0.460 113 9/15/2026
Loading failed

Update dependency System.Text.Json to 10.0.14 (#1099)