Soenneker.Extensions.Dtos.ProblemDetails 4.0.59

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

alternate text is missing from this package README image Soenneker.Extensions.Dtos.ProblemDetails

Extension methods for converting and enriching ProblemDetailsDto error responses for use in application result pipelines.

Installation

dotnet add package Soenneker.Extensions.Dtos.ProblemDetails

Usage

using Soenneker.Extensions.Dtos.ProblemDetails;

var problem = new ProblemDetailsDto
{
    Status = 404,
    Title = "Customer not found"
};

OperationResult result = problem.ToOperationResult();
// result.Problem is the same problem instance
// result.StatusCode == 404

Status selection follows a clear precedence:

  1. An explicit HttpStatusCode argument wins.
  2. Otherwise problem.Status is used.
  3. If neither is present, the result uses 500.

The problem object is assigned directly rather than cloned. The source must be non-null.

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 (1)

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

Package Downloads
Soenneker.Extensions.HttpResponseMessage

A collection of helpful HttpResponseMessage extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.61 35 8/30/2026
4.0.60 101 8/30/2026
4.0.59 229 8/29/2026
4.0.57 41 8/29/2026
4.0.56 5,691 8/18/2026
4.0.55 467 8/18/2026
4.0.54 1,140 8/12/2026
4.0.53 6,460 7/28/2026
4.0.52 1,478 7/28/2026
4.0.51 101 7/28/2026
4.0.50 6,747 7/16/2026
4.0.49 131 7/16/2026
4.0.48 2,661 7/15/2026
4.0.47 7,777 6/19/2026
4.0.46 111 6/19/2026
4.0.45 5,234 6/10/2026
4.0.44 4,662 6/6/2026
4.0.43 748 6/5/2026
4.0.42 161 6/5/2026
4.0.41 4,063 5/13/2026
Loading failed

Describe extension library scope separately from current API