Class ErrorStatus
The body that is returned for any failing request. We are using the RFC 7807 Error Format.
Inherited Members
Namespace: Unity.Services.Apis.PlayerNames
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "ErrorStatus")]
[Preserve]
public class ErrorStatus
Constructors
ErrorStatus(int, string, string, int, List<Detail>)
Initializes a new instance of the Error
Declaration
[Preserve]
public ErrorStatus(int status = 0, string title = null, string detail = null, int code = 0, List<Detail> details = null)
Parameters
Type | Name | Description |
---|---|---|
int | status | The HTTP status code of the response. (required). |
string | title | A short, human-readable summary of the problem type. It does not change between occurrences of the problem, except for purposes of localization. (required). |
string | detail | A human-readable explanation specific to this occurrence of the problem. (required). |
int | code | An integer that uniquely identifies an error type. This can be used to programmatically identify the type of error. (required). |
List<Detail> | details | A list of additional details about specific errors.. |
Properties
Code
An integer that uniquely identifies an error type. This can be used to programmatically identify the type of error.
Declaration
[DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Code { get; set; }
Property Value
Type | Description |
---|---|
int | An integer that uniquely identifies an error type. This can be used to programmatically identify the type of error. |
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
A list of additional details about specific errors.
Declaration
[DataMember(Name = "details", EmitDefaultValue = false)]
[Preserve]
public List<Detail> Details { get; set; }
Property Value
Status
The HTTP status code of the response.
Declaration
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Status { get; set; }
Property Value
Type | Description |
---|---|
int | The HTTP status code of the response. |
Title
A short, human-readable summary of the problem type. It does not change between occurrences of the problem, except for purposes of localization.
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 does not change between occurrences of the problem, except for purposes of localization. |