v1.2.1
Latest
2020.3+

Class ErrorStatus

The body that will be returned for any failing request. We are using the RFC 7807 Error Format.

Inheritance
ErrorStatus
Namespace: Unity.Services.Lobbies.Models
Syntax
[Preserve]
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
[Preserve]
public ErrorStatus(string type = null, int status = 0, string title = null, string detail = null, int code = 0, List<Detail> details = null)
Parameters
TypeNameDescription
Stringtype

A URI that identifies the problem type and should provide documentation for the problem.

Int32status

The HTTP status code of the response.

Stringtitle

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.

Stringdetail

A human-readable explanation specific to this occurrence of the problem.

Int32code

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
TypeDescription
Int32

Detail

A human-readable explanation specific to this occurrence of the problem.

Declaration
[Preserve]
public string Detail { get; }
Property Value
TypeDescription
String

Details

A list of additional details about specific errors.

Declaration
[Preserve]
public List<Detail> Details { get; }
Property Value
TypeDescription
List<Detail>

Status

The HTTP status code of the response.

Declaration
[Preserve]
public int Status { get; }
Property Value
TypeDescription
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
TypeDescription
String

Type

A URI that identifies the problem type and should provide documentation for the problem.

Declaration
[Preserve]
public string Type { get; }
Property Value
TypeDescription
String