docs.unity3d.com
    Show / Hide Table of Contents

    Class BasicErrorResponse

    Referenced from - https://tools.ietf.org/html/rfc7807#page-3 Consumers MUST use the 'type' string as the primary identifier for the problem type; the 'title' string is advisory and included only for users who are not aware of the semantics of the URI and do not have the ability to discover them (e.g., offline log analysis). Consumers SHOULD NOT automatically dereference the type URI. The "status" member, if present, is only advisory; it conveys the HTTP status code used for the convenience of the consumer. Generators MUST use the same status code in the actual HTTP response, to assure that generic HTTP software that does not understand this format still behaves correctly. See Section 5 for further caveats regarding its use. Consumers can use the status member to determine what the original status code used by the generator was, in cases where it has been changed (e.g., by an intermediary or cache), and when message bodies persist without HTTP information. Generic HTTP software will still use the HTTP status code. The "detail" member, if present, ought to focus on helping the client correct the problem, rather than giving debugging information. 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 "about:blank". 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). The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. Service specific error code A human-readable explanation specific to this occurrence of the problem. A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. Machine readable service specific errors.

    Inheritance
    Object
    BasicErrorResponse
    Namespace: Unity.GameBackend.CloudCode.Models
    Syntax
    public class BasicErrorResponse : object

    Constructors

    BasicErrorResponse(String, String, Int32, Int32, String, String, List<Object>)

    Referenced from - https://tools.ietf.org/html/rfc7807#page-3 Consumers MUST use the 'type' string as the primary identifier for the problem type; the 'title' string is advisory and included only for users who are not aware of the semantics of the URI and do not have the ability to discover them (e.g., offline log analysis). Consumers SHOULD NOT automatically dereference the type URI. The &quot;status&quot; member, if present, is only advisory; it conveys the HTTP status code used for the convenience of the consumer. Generators MUST use the same status code in the actual HTTP response, to assure that generic HTTP software that does not understand this format still behaves correctly. See Section 5 for further caveats regarding its use. Consumers can use the status member to determine what the original status code used by the generator was, in cases where it has been changed (e.g., by an intermediary or cache), and when message bodies persist without HTTP information. Generic HTTP software will still use the HTTP status code. The &quot;detail&quot; member, if present, ought to focus on helping the client correct the problem, rather than giving debugging information.

    Declaration
    public BasicErrorResponse(string type, string title = null, int status = null, int code = null, string detail = null, string instance = null, List<object> details = null)
    Parameters
    Type Name Description
    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;.

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

    Int32 status

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

    Int32 code

    Service specific error code

    String detail

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

    String instance

    A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

    List<Object> details

    Machine readable service specific errors.

    Properties

    Code

    Service specific error code

    Declaration
    public int Code { get; }
    Property Value
    Type Description
    Int32

    Detail

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

    Declaration
    public string Detail { get; }
    Property Value
    Type Description
    String

    Details

    Machine readable service specific errors.

    Declaration
    public List<object> Details { get; }
    Property Value
    Type Description
    List<Object>

    Instance

    A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

    Declaration
    public string Instance { get; }
    Property Value
    Type Description
    String

    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
    Type Description
    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
    Type Description
    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
    Type Description
    String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023