CustomLibrary.ProblemDetails 1.0.26

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

// Install CustomLibrary.ProblemDetails as a Cake Tool
#tool nuget:?package=CustomLibrary.ProblemDetails&version=1.0.26

CustomLibrary.ProblemDetails

Collection of tools related to problem management (exceptions) that can be generated by applications.

This library is an ad hoc code customization used in my private/work projects thus avoiding the duplication of repetitive code.

How to use ?

A full example is available in the CustomLibrary.ProblemDetails.Sample folder or click here.

Note: For correct operation it is necessary to add services.AddProblemDetails(); and app.UseProblemDetails(); to the Program class or in the Startup class

List of Exception Responses

Status Codes Exception Status
304 NotModifiedException available
400 BadRequestException available
401 UnauthorizedException available
403 ForbiddenException available
404 NotFoundException available
405 NotAllowedException available
406 NotAcceptableException available
408 RequestTimeoutException available
409 ConflictException available
422 UnprocessableEntityException available
500 InternalServerErrorException available
501 NotImplementedException coming soon
502 BadGatewayException coming soon
503 ServiceUnavailableException coming soon
504 GatewayTimeoutException coming soon

Contributing

Contributions and/or suggestions are always welcome.

License

GitHub License

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
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
1.1.1 159 12/21/2023
1.0.35 149 10/31/2023
1.0.33 94 10/30/2023
1.0.31 111 10/28/2023
1.0.29 96 10/24/2023
1.0.26 116 9/25/2023
1.0.24 108 9/12/2023
1.0.22 146 8/29/2023