CustomLibrary.ProblemDetails

December 21, 2023 ยท View on GitHub

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.

.NET SDK compatibility

.NET SDKSupported
6.0Yes
7.0No
8.0Yes

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 CodesException
304NotModifiedException
400BadRequestException
401UnauthorizedException
403ForbiddenException
404NotFoundException
405NotAllowedException
406NotAcceptableException
408RequestTimeoutException
409ConflictException
422UnprocessableEntityException
500InternalServerErrorException
501NotImplementedException
502BadGatewayException
503ServiceUnavailableException
504GatewayTimeoutException

Contributing

Contributions and/or suggestions are always welcome.

License

GitHub License