Class ErrorStatus
The body that will be returned for any failing request. We are using the RFC 7807 Error Format.
Inheritance
Inherited Members
Namespace: Unity.Services.Lobbies.Models
Syntax
public class ErrorStatus
Constructors
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
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 |
---|---|---|
System.String | type | A URI that identifies the problem type and should provide documentation for the problem. |
System.Int32 | status | The HTTP status code of the response. |
System.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. |
System.String | detail | A human-readable explanation specific to this occurrence of the problem. |
System.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. |
System.Collections.Generic.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
public int Code { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Detail
A human-readable explanation specific to this occurrence of the problem.
Declaration
public string Detail { get; }
Property Value
Type | Description |
---|---|
System.String |
Details
A list of additional details about specific errors.
Declaration
public List<Detail> Details { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Detail> |
Status
The HTTP status code of the response.
Declaration
public int Status { get; }
Property Value
Type | Description |
---|---|
System.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
public string Title { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
A URI that identifies the problem type and should provide documentation for the problem.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System.String |