Class ErrorStatus
The body that will be returned for any failing request. We are using the RFC 7807 Error Format.
Namespace: Unity.Services.Lobbies.Models
Syntax
[Preserve]
public class ErrorStatusConstructors
ErrorStatus(String, Int32, String, String, Int32, List<Detail>)
The body that will be returned for any failing request. We are using the RFC 7807 Error Format.
Declaration
[Preserve]
public ErrorStatus(string type = null, int status = 0, string title = null, string detail = null, int code = 0, List<Detail> details = null)Parameters
| Type | Name | Description | 
|---|---|---|
| String | type | A URI that identifies the problem type and should provide documentation for the problem.  | 
| Int32 | status | The HTTP status code of the response.  | 
| 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.  | 
| String | detail | A human-readable explanation specific to this occurrence of the problem.  | 
| Int32 | code | An integer in the range 16000-16999 that uniquely identifies an error type. This can be used to programatically identify the type of error.  | 
| List<Detail> | details | A list of additional details about specific errors.  | 
Properties
Code
An integer in the range 16000-16999 that uniquely identifies an error type. This can be used to programatically identify the type of error.
Declaration
[Preserve]
public int Code { get; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
Detail
A human-readable explanation specific to this occurrence of the problem.
Declaration
[Preserve]
public string Detail { get; }Property Value
| Type | Description | 
|---|---|
| String | 
Details
A list of additional details about specific errors.
Declaration
[Preserve]
public List<Detail> Details { get; }Property Value
| Type | Description | 
|---|---|
| List<Detail> | 
Status
The HTTP status code of the response.
Declaration
[Preserve]
public int Status { get; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
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.
Declaration
[Preserve]
public string Title { get; }Property Value
| Type | Description | 
|---|---|
| String | 
Type
A URI that identifies the problem type and should provide documentation for the problem.
Declaration
[Preserve]
public string Type { get; }Property Value
| Type | Description | 
|---|---|
| String |