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: solution.dll
Syntax
[Preserve]
public class ErrorStatus
Constructors
ErrorStatus(int, string, string, int, List<Detail>)
Initializes a new instance of the ErrorStatus class.
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
[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
[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
[Preserve]
public List<Detail> Details { get; set; }
Property Value
Type | Description |
---|---|
List<Detail> | A list of additional details about specific errors. |
Status
The HTTP status code of the response.
Declaration
[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
[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. |