Sisk

Struct

HttpStatusInformation

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

Represents a value that holds an HTTP response status information, with it’s status code and description.

C#
public readonly struct HttpStatusInformation : IEquatable<HttpStatusInformation>, IEquatable<HttpStatusCode>, IEquatable<int>

Implements #

IEquatable<HttpStatusInformation>, IEquatable<HttpStatusCode>, IEquatable<int>

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
HttpStatusInformation()Creates an new HttpStatusInformation with default parameters (200 OK) status.
HttpStatusInformation(int)Creates an new HttpStatusInformation instance with given parameters.
HttpStatusInformation(HttpStatusCode)Creates an new HttpStatusInformation instance with given parameters.
HttpStatusInformation(int, string)Creates an new HttpStatusInformation instance with given parameters.

Properties #

NameDescription
AcceptedGets an HttpStatusInformation with an HTTP 202 Accepted status.
AlreadyReportedGets an HttpStatusInformation with an HTTP 208 Already Reported status.
BadGatewayGets an HttpStatusInformation with an HTTP 502 Bad Gateway status.
BadRequestGets an HttpStatusInformation with an HTTP 400 Bad Request status.
ConflictGets an HttpStatusInformation with an HTTP 409 Conflict status.
ContinueGets an HttpStatusInformation with an HTTP 100 Continue status.
CreatedGets an HttpStatusInformation with an HTTP 201 Created status.
DescriptionGets the short description of the HTTP message.
EarlyHintsGets an HttpStatusInformation with an HTTP 103 Early Hints status.
ExpectationFailedGets an HttpStatusInformation with an HTTP 417 Expectation Failed status.
FailedDependencyGets an HttpStatusInformation with an HTTP 424 Failed Dependency status.
ForbiddenGets an HttpStatusInformation with an HTTP 403 Forbidden status.
FoundGets an HttpStatusInformation with an HTTP 302 Found status.
GatewayTimeoutGets an HttpStatusInformation with an HTTP 504 Gateway Timeout status.
GoneGets an HttpStatusInformation with an HTTP 410 Gone status.
HttpVersionNotSupportedGets an HttpStatusInformation with an HTTP 505 HTTP Version Not Supported status.
ImATeapotGets an HttpStatusInformation with an HTTP 418 I’m a teapot status.
ImUsedGets an HttpStatusInformation with an HTTP 226 IM Used status.
InsufficientStorageGets an HttpStatusInformation with an HTTP 507 Insufficient Storage status.
InternalServerErrorGets an HttpStatusInformation with an HTTP 500 Internal Server Error status.
LengthRequiredGets an HttpStatusInformation with an HTTP 411 Length Required status.
LockedGets an HttpStatusInformation with an HTTP 423 Locked status.
LoopDetectedGets an HttpStatusInformation with an HTTP 508 Loop Detected status.
MethodNotAllowedGets an HttpStatusInformation with an HTTP 405 Method Not Allowed status.
MisdirectedRequestGets an HttpStatusInformation with an HTTP 421 Misdirected Request status.
MovedPermanentlyGets an HttpStatusInformation with an HTTP 301 Moved Permanently status.
MultiStatusGets an HttpStatusInformation with an HTTP 207 Multi-Status status.
MultipleChoicesGets an HttpStatusInformation with an HTTP 300 Multiple Choices status.
NoContentGets an HttpStatusInformation with an HTTP 204 No Content status.
NonAuthoritativeInformationGets an HttpStatusInformation with an HTTP 203 Non-Authoritative Information status.
NotAcceptableGets an HttpStatusInformation with an HTTP 406 Not Acceptable status.
NotExtendedGets an HttpStatusInformation with an HTTP 510 Not Extended status.
NotFoundGets an HttpStatusInformation with an HTTP 404 Not Found status.
NotImplementedGets an HttpStatusInformation with an HTTP 501 Not Implemented status.
NotModifiedGets an HttpStatusInformation with an HTTP 304 Not Modified status.
OkGets an HttpStatusInformation with an HTTP 200 OK status.
PartialContentGets an HttpStatusInformation with an HTTP 206 Partial Content status.
PayloadTooLargeGets an HttpStatusInformation with an HTTP 413 Payload Too Large status.
PaymentRequiredGets an HttpStatusInformation with an HTTP 402 Payment Required status.
PermanentRedirectGets an HttpStatusInformation with an HTTP 308 Permanent Redirect status.
PreconditionFailedGets an HttpStatusInformation with an HTTP 412 Precondition Failed status.
PreconditionRequiredGets an HttpStatusInformation with an HTTP 428 Precondition Required status.
ProcessingGets an HttpStatusInformation with an HTTP 102 Processing status.
ProxyAuthenticationRequiredGets an HttpStatusInformation with an HTTP 407 Proxy Authentication Required status.
RangeNotSatisfiableGets an HttpStatusInformation with an HTTP 416 Range Not Satisfiable status.
RequestHeaderFieldsTooLargeGets an HttpStatusInformation with an HTTP 431 Request Header Fields Too Large status.
RequestTimeoutGets an HttpStatusInformation with an HTTP 408 Request Timeout status.
ResetContentGets an HttpStatusInformation with an HTTP 205 Reset Content status.
SeeOtherGets an HttpStatusInformation with an HTTP 303 See Other status.
ServiceUnavailableGets an HttpStatusInformation with an HTTP 503 Service Unavailable status.
StatusCodeGets the numeric HTTP status code of the HTTP message.
SwitchProxyGets an HttpStatusInformation with an HTTP 306 Switch Proxy status.
SwitchingProtocolsGets an HttpStatusInformation with an HTTP 101 Switching Protocols status.
TemporaryRedirectGets an HttpStatusInformation with an HTTP 307 Temporary Redirect status.
TooManyRequestsGets an HttpStatusInformation with an HTTP 429 Too Many Requests status.
UnauthorizedGets an HttpStatusInformation with an HTTP 401 Unauthorized status.
UnavailableForLegalReasonsGets an HttpStatusInformation with an HTTP 451 Unavailable For Legal Reasons status.
UnprocessableEntityGets an HttpStatusInformation with an HTTP 422 Unprocessable Entity status.
UnsupportedMediaTypeGets an HttpStatusInformation with an HTTP 415 Unsupported Media Type status.
UpgradeRequiredGets an HttpStatusInformation with an HTTP 426 Upgrade Required status.
UriTooLongGets an HttpStatusInformation with an HTTP 414 URI Too Long status.
UseProxyGets an HttpStatusInformation with an HTTP 305 Use Proxy status.
VariantAlsoNegotiatesGets an HttpStatusInformation with an HTTP 506 Variant Also Negotiates status.

Methods #

NameDescription
GetHttpStatusCode()Gets an HttpStatusCode corresponding to this instance, or null if the HTTP status does not match any value.
GetStatusCodeDescription(int)Gets the description of the specified HTTP status code.
GetStatusCodeDescription(HttpStatusCode)Gets the description of the specified HTTP status code.
ToString()Gets an string representation of this HTTP Status Code.

Operators #

NameDescription
operator ==(HttpStatusInformation, int?)

Type to search the documentation and the API reference.