Class ErrorResponseBody
ErrorResponseBody model
Inherited Members
Namespace: Unity.Services.CommonMultiplayerBackend .Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "ErrorResponseBody")]
public class ErrorResponseBody
Constructors
ErrorResponseBody(int, string, string, string, List<ErrorDetail>, string, int)
Creates an instance of ErrorResponseBody.
Declaration
[Preserve]
public ErrorResponseBody(int status, string requestId, string detail = null, string title = null, List<ErrorDetail> details = null, string type = null, int code = 0)
Parameters
Type | Name | Description |
---|---|---|
int | status | MUST use the same status code in the actual HTTP response. |
string | requestId | Identifier of the request. Used when debugging failures. |
string | detail | A human-readable explanation specific to this occurrence of the problem. Ought to focus on helping the client correct the problem, rather than giving debugging information. |
string | title | SHOULD be the same as the recommended HTTP status phrase for that code. |
List<Error |
details | Machine readable list of individual errors. |
string | type | An URI representing the type of error. |
int | code | A service specific error code in the range of [45000, 45999]. |
Properties
Code
A service specific error code in the range of [45000, 45999].
Declaration
[Preserve]
[DataMember(Name = "code", EmitDefaultValue = false)]
public int Code { get; }
Property Value
Type | Description |
---|---|
int |
Detail
A human-readable explanation specific to this occurrence of the problem. Ought to focus on helping the client correct the problem, rather than giving debugging information.
Declaration
[Preserve]
[DataMember(Name = "detail", EmitDefaultValue = false)]
public string Detail { get; }
Property Value
Type | Description |
---|---|
string |
Details
Machine readable list of individual errors.
Declaration
[Preserve]
[DataMember(Name = "details", EmitDefaultValue = false)]
public List<ErrorDetail> Details { get; }
Property Value
Type | Description |
---|---|
List<Error |
RequestId
Identifier of the request. Used when debugging failures.
Declaration
[Preserve]
[DataMember(Name = "requestId", IsRequired = true, EmitDefaultValue = true)]
public string RequestId { get; }
Property Value
Type | Description |
---|---|
string |
Status
MUST use the same status code in the actual HTTP response.
Declaration
[Preserve]
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
public int Status { get; }
Property Value
Type | Description |
---|---|
int |
Title
SHOULD be the same as the recommended HTTP status phrase for that code.
Declaration
[Preserve]
[DataMember(Name = "title", EmitDefaultValue = false)]
public string Title { get; }
Property Value
Type | Description |
---|---|
string |
Type
An URI representing the type of error.
Declaration
[Preserve]
[DataMember(Name = "type", EmitDefaultValue = false)]
public string Type { get; }
Property Value
Type | Description |
---|---|
string |