CustomLibrary.ProblemDetails
1.0.29
dotnet add package CustomLibrary.ProblemDetails --version 1.0.29
NuGet\Install-Package CustomLibrary.ProblemDetails -Version 1.0.29
<PackageReference Include="CustomLibrary.ProblemDetails" Version="1.0.29" />
paket add CustomLibrary.ProblemDetails --version 1.0.29
#r "nuget: CustomLibrary.ProblemDetails, 1.0.29"
// Install CustomLibrary.ProblemDetails as a Cake Addin #addin nuget:?package=CustomLibrary.ProblemDetails&version=1.0.29 // Install CustomLibrary.ProblemDetails as a Cake Tool #tool nuget:?package=CustomLibrary.ProblemDetails&version=1.0.29
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 | available |
502 | BadGatewayException | coming soon |
503 | ServiceUnavailableException | coming soon |
504 | GatewayTimeoutException | coming soon |
Contributing
Contributions and/or suggestions are always welcome.
License
Product | Versions 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. |
-
net6.0
- Hellang.Middleware.ProblemDetails (>= 6.5.1)
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 |
---|