lf-api-client-core-dotnet  1.3.7
Loading...
Searching...
No Matches
ProblemDetails Class Reference

A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807. More...

Static Public Member Functions

static ProblemDetails Create (int statusCode, IReadOnlyDictionary< string, IEnumerable< string > > headers)
 Create a minimal ProblemDetails using HTTP response information.
 

Properties

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.
 

Detailed Description

A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807.

Member Function Documentation

◆ Create()

static ProblemDetails Create ( int  statusCode,
IReadOnlyDictionary< string, IEnumerable< string > >  headers 
)
inlinestatic

Create a minimal ProblemDetails using HTTP response information.

Parameters
statusCodeThe response status code.
headersThe response headers.
Returns
ProblemDetails

The documentation for this class was generated from the following file: