Class ErrorResponseBody
ErrorResponseBody
Inherited Members
Namespace: Unity.Services.Apis.Relay
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "ErrorResponseBody")]
[Preserve]
public class ErrorResponseBody
Constructors
ErrorResponseBody(int, string, string, List<KeyValuePair>, string, int)
Initializes a new instance of the Error
Declaration
[Preserve]
public ErrorResponseBody(int status = 0, string detail = null, string title = null, List<KeyValuePair> details = null, string type = null, int code = 0)
Parameters
Type | Name | Description |
---|---|---|
int | status | The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. (required). |
string | detail | A human-readable explanation specific to this occurrence of the problem. (required). |
string | title | A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4). (required). |
List<Key |
details | An array of machine-readable service-specific errors.. |
string | type | A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". (required). |
int | code | A service-specific error code. (required). |
Properties
Code
A service-specific error code.
Declaration
[DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Code { get; set; }
Property Value
Type | Description |
---|---|
int | A service-specific error code. |
Detail
A human-readable explanation specific to this occurrence of the problem.
Declaration
[DataMember(Name = "detail", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Detail { get; set; }
Property Value
Type | Description |
---|---|
string | A human-readable explanation specific to this occurrence of the problem. |
Details
An array of machine-readable service-specific errors.
Declaration
[DataMember(Name = "details", EmitDefaultValue = false)]
[Preserve]
public List<KeyValuePair> Details { get; set; }
Property Value
Type | Description |
---|---|
List<Key |
An array of machine-readable service-specific errors. |
Status
The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
Declaration
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Status { get; set; }
Property Value
Type | Description |
---|---|
int | The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. |
Title
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).
Declaration
[DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string | A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4). |
Type
A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank".
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string | A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". |