v1.0.0
Latest
2022.3+

Class ErrorResponseBody

ErrorResponseBody model

Inheritance
System.Object
ErrorResponseBody
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.Relay.Models
Syntax
public class ErrorResponseBody

Constructors

ErrorResponseBody(Int32, String, String, String, Int32, List<KeyValuePair>)

Creates an instance of ErrorResponseBody.

Declaration
public ErrorResponseBody(int status, string detail, string title, string type, int code, List<KeyValuePair> details = null)
Parameters
TypeNameDescription
System.Int32status

The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

System.Stringdetail

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

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 (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).

System.Stringtype

A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be &quot;about:blank&quot;.

System.Int32code

A service-specific error code.

System.Collections.Generic.List<KeyValuePair>details

An array of machine-readable service-specific errors.

Properties

Code

A service-specific error code.

Declaration
public int Code { get; }
Property Value
TypeDescription
System.Int32

Detail

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

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

Details

An array of machine-readable service-specific errors.

Declaration
public List<KeyValuePair> Details { get; }
Property Value
TypeDescription
System.Collections.Generic.List<KeyValuePair>

Status

The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

Declaration
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 (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).

Declaration
public string Title { get; }
Property Value
TypeDescription
System.String

Type

A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be &quot;about:blank&quot;.

Declaration
public string Type { get; }
Property Value
TypeDescription
System.String