Class HttpErrorResult
A HTTP error result.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Results
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class HttpErrorResult : ErrorResult, IEquatable<ErrorResult>, IHttpErrorResult, IErrorResult, IEquatable<HttpErrorResult>
Constructors
| Improve this Doc View SourceHttpErrorResult(HttpStatusCode, String)
Initializes a new instance of ErrorResult.
Declaration
public HttpErrorResult(HttpStatusCode statusCode, string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Net.HttpStatusCode | statusCode | The System.Net.HttpStatusCode of the response. |
System.String | errorMessage | The message of the error. |
Properties
| Improve this Doc View SourceStatusCode
The System.Net.HttpStatusCode of the response.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Net.HttpStatusCode |
Implements
System.IEquatable<T>
System.IEquatable<T>