A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807.
More...
|
| static ProblemDetails | Create (int statusCode, IReadOnlyDictionary< string, IEnumerable< string > > headers) |
| | Create a minimal ProblemDetails using HTTP response information.
|
| |
|
|
string | Detail [get, set] |
| | A human-readable explanation specific to this occurrence of the problem.
|
| |
|
int | ErrorCode [get, set] |
| | The error code.
|
| |
|
string | ErrorSource [get, set] |
| | The error source.
|
| |
|
IDictionary< string, object > | Extensions = new Dictionary<string, object>() [get, set] |
| | The extension members.
|
| |
|
string | Instance [get, set] |
| | A URI reference that identifies the specific occurrence of the problem.
|
| |
|
string | OperationId [get, set] |
| | The operation id.
|
| |
|
int | Status [get, set] |
| | The HTTP status code.
|
| |
|
string | Title [get, set] |
| | A short, human-readable summary of the problem type.
|
| |
|
string | TraceId [get, set] |
| | The trace id.
|
| |
|
string | Type [get, set] |
| | The problem type.
|
| |
A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807.
◆ Create()
| static ProblemDetails Create |
( |
int |
statusCode, |
|
|
IReadOnlyDictionary< string, IEnumerable< string > > |
headers |
|
) |
| |
|
inlinestatic |
Create a minimal ProblemDetails using HTTP response information.
- Parameters
-
| statusCode | The response status code. |
| headers | The response headers. |
- Returns
- ProblemDetails
The documentation for this class was generated from the following file: