Class HttpErrorResult
A HTTP error result.
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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 |
---|---|---|
HttpStatusCode | statusCode | The HttpStatusCode of the response. |
String | errorMessage | The message of the error. |
Properties
| Improve this Doc View SourceStatusCode
The HttpStatusCode of the response.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode |