Method Create
- Namespace
- BpNexT.Actions.Abstractions
- Assembly
- BpNexT.Actions.Abstractions.dll
Create(int, string, string?, string?, Exception?, IReadOnlyDictionary<string, string>?)
Creates a problem with any status code.
public static ProblemHttpException Create(int status, string title, string? detail = null, string? code = null, Exception? inner = null, IReadOnlyDictionary<string, string>? headers = null)
Parameters
statusinttitlestringdetailstringcodestringinnerExceptionheadersIReadOnlyDictionary<string, string>
Returns
Create(HttpStatusCode, string, string?, string?, Exception?, IReadOnlyDictionary<string, string>?)
Creates a problem from an HttpStatusCode.
public static ProblemHttpException Create(HttpStatusCode status, string title, string? detail = null, string? code = null, Exception? inner = null, IReadOnlyDictionary<string, string>? headers = null)
Parameters
statusHttpStatusCodetitlestringdetailstringcodestringinnerExceptionheadersIReadOnlyDictionary<string, string>