v1.1.4
Latest
2022.3+

Class ErrorStatus

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

Inheritance
System.Object
ErrorStatus
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
System.Stringtype

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

System.Int32status

The HTTP status code of the response.

System.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.

System.Stringdetail

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

System.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.

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
[Preserve]
public int Code { get; }
Property Value
TypeDescription
System.Int32

Detail

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

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

Details

A list of additional details about specific errors.

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

Status

The HTTP status code of the response.

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