Struct HttpStatusInformation
Represents a structure that holds an HTTP response status information, with it's status code and description.
public readonly struct HttpStatusInformation : IEquatable<HttpStatusInformation>, IEquatable<HttpStatusCode>, IEquatable<int>
- Implements
- Inherited Members
Constructors
- HttpStatusInformation()
Creates an new HttpStatusInformation with default parameters (200 OK) status.
- HttpStatusInformation(int)
Creates an new HttpStatusInformation instance with given parameters.
- HttpStatusInformation(int, string)
Creates an new HttpStatusInformation instance with given parameters.
- HttpStatusInformation(HttpStatusCode)
Creates an new HttpStatusInformation instance with given parameters.
Properties
- Accepted
Gets an HttpStatusInformation with an HTTP 202 Accepted status.
- AlreadyReported
Gets an HttpStatusInformation with an HTTP 208 Already Reported status.
- BadGateway
Gets an HttpStatusInformation with an HTTP 502 Bad Gateway status.
- BadRequest
Gets an HttpStatusInformation with an HTTP 400 Bad Request status.
- Conflict
Gets an HttpStatusInformation with an HTTP 409 Conflict status.
- Continue
Gets an HttpStatusInformation with an HTTP 100 Continue status.
- Created
Gets an HttpStatusInformation with an HTTP 201 Created status.
- Description
Gets the short description of the HTTP message.
- EarlyHints
Gets an HttpStatusInformation with an HTTP 103 Early Hints status.
- ExpectationFailed
Gets an HttpStatusInformation with an HTTP 417 Expectation Failed status.
- FailedDependency
Gets an HttpStatusInformation with an HTTP 424 Failed Dependency status.
- Forbidden
Gets an HttpStatusInformation with an HTTP 403 Forbidden status.
- Found
Gets an HttpStatusInformation with an HTTP 302 Found status.
- GatewayTimeout
Gets an HttpStatusInformation with an HTTP 504 Gateway Timeout status.
- Gone
Gets an HttpStatusInformation with an HTTP 410 Gone status.
- HttpVersionNotSupported
Gets an HttpStatusInformation with an HTTP 505 HTTP Version Not Supported status.
- ImATeapot
Gets an HttpStatusInformation with an HTTP 418 I'm a teapot status.
- ImUsed
Gets an HttpStatusInformation with an HTTP 226 IM Used status.
- InsufficientStorage
Gets an HttpStatusInformation with an HTTP 507 Insufficient Storage status.
- InternalServerError
Gets an HttpStatusInformation with an HTTP 500 Internal Server Error status.
- LengthRequired
Gets an HttpStatusInformation with an HTTP 411 Length Required status.
- Locked
Gets an HttpStatusInformation with an HTTP 423 Locked status.
- LoopDetected
Gets an HttpStatusInformation with an HTTP 508 Loop Detected status.
- MethodNotAllowed
Gets an HttpStatusInformation with an HTTP 405 Method Not Allowed status.
- MisdirectedRequest
Gets an HttpStatusInformation with an HTTP 421 Misdirected Request status.
- MovedPermanently
Gets an HttpStatusInformation with an HTTP 301 Moved Permanently status.
- MultiStatus
Gets an HttpStatusInformation with an HTTP 207 Multi-Status status.
- MultipleChoices
Gets an HttpStatusInformation with an HTTP 300 Multiple Choices status.
- NoContent
Gets an HttpStatusInformation with an HTTP 204 No Content status.
- NonAuthoritativeInformation
Gets an HttpStatusInformation with an HTTP 203 Non-Authoritative Information status.
- NotAcceptable
Gets an HttpStatusInformation with an HTTP 406 Not Acceptable status.
- NotExtended
Gets an HttpStatusInformation with an HTTP 510 Not Extended status.
- NotFound
Gets an HttpStatusInformation with an HTTP 404 Not Found status.
- NotImplemented
Gets an HttpStatusInformation with an HTTP 501 Not Implemented status.
- NotModified
Gets an HttpStatusInformation with an HTTP 304 Not Modified status.
- Ok
Gets an HttpStatusInformation with an HTTP 200 OK status.
- PartialContent
Gets an HttpStatusInformation with an HTTP 206 Partial Content status.
- PayloadTooLarge
Gets an HttpStatusInformation with an HTTP 413 Payload Too Large status.
- PaymentRequired
Gets an HttpStatusInformation with an HTTP 402 Payment Required status.
- PermanentRedirect
Gets an HttpStatusInformation with an HTTP 308 Permanent Redirect status.
- PreconditionFailed
Gets an HttpStatusInformation with an HTTP 412 Precondition Failed status.
- PreconditionRequired
Gets an HttpStatusInformation with an HTTP 428 Precondition Required status.
- Processing
Gets an HttpStatusInformation with an HTTP 102 Processing status.
- ProxyAuthenticationRequired
Gets an HttpStatusInformation with an HTTP 407 Proxy Authentication Required status.
- RangeNotSatisfiable
Gets an HttpStatusInformation with an HTTP 416 Range Not Satisfiable status.
- RequestHeaderFieldsTooLarge
Gets an HttpStatusInformation with an HTTP 431 Request Header Fields Too Large status.
- RequestTimeout
Gets an HttpStatusInformation with an HTTP 408 Request Timeout status.
- ResetContent
Gets an HttpStatusInformation with an HTTP 205 Reset Content status.
- SeeOther
Gets an HttpStatusInformation with an HTTP 303 See Other status.
- ServiceUnavailable
Gets an HttpStatusInformation with an HTTP 503 Service Unavailable status.
- StatusCode
Gets the numeric HTTP status code of the HTTP message.
- SwitchProxy
Gets an HttpStatusInformation with an HTTP 306 Switch Proxy status.
- SwitchingProtocols
Gets an HttpStatusInformation with an HTTP 101 Switching Protocols status.
- TemporaryRedirect
Gets an HttpStatusInformation with an HTTP 307 Temporary Redirect status.
- TooManyRequests
Gets an HttpStatusInformation with an HTTP 429 Too Many Requests status.
- Unauthorized
Gets an HttpStatusInformation with an HTTP 401 Unauthorized status.
- UnavailableForLegalReasons
Gets an HttpStatusInformation with an HTTP 451 Unavailable For Legal Reasons status.
- UnprocessableEntity
Gets an HttpStatusInformation with an HTTP 422 Unprocessable Entity status.
- UnsupportedMediaType
Gets an HttpStatusInformation with an HTTP 415 Unsupported Media Type status.
- UpgradeRequired
Gets an HttpStatusInformation with an HTTP 426 Upgrade Required status.
- UriTooLong
Gets an HttpStatusInformation with an HTTP 414 URI Too Long status.
- UseProxy
Gets an HttpStatusInformation with an HTTP 305 Use Proxy status.
- VariantAlsoNegotiates
Gets an HttpStatusInformation with an HTTP 506 Variant Also Negotiates status.
Methods
- 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 HTTP status based on its description.
- GetStatusCodeDescription(HttpStatusCode)
Gets the description of the HTTP status based on its description.
- ToString()
Gets an string representation of this HTTP Status Code.