System::Net::HttpStatusCode 枚举

HttpStatusCode enum

enum class HttpStatusCode

名称描述
Continue100‘Continue’ 状态码等于 HTTP 状态 100。
SwitchingProtocols101‘Switching Protocol’ 状态码等于 HTTP 状态 101。
OK200‘OK’ 状态码等于 HTTP 状态 200。
Created201‘Created’ 状态码等于 HTTP 状态 201。
Accepted202‘Accepted’ 状态码等于 HTTP 状态 202。
NonAuthoritativeInformation203‘Non-Authoritative Information’ 状态码等于 HTTP 状态 203。
NoContent204‘No Content’ 状态码等于 HTTP 状态 204。
ResetContent205‘Reset Content’ 状态码等于 HTTP 状态 205。
PartialContent206该 ‘Partial Content’ 状态码等于 HTTP 状态 206.
MultipleChoices300该 ‘Multiple Choice’ 状态码等于 HTTP 状态 300.
Ambiguous300该 ‘Ambiguous’ 状态码等于 HTTP 状态 300.
MovedPermanently301该 ‘Moved Permanently’ 状态码等于 HTTP 状态 301.
Moved301该 ‘Moved’ 状态码等于 HTTP 状态 301.
Found302该 ‘Found’ 状态码等于 HTTP 状态 302.
Redirect302该 ‘Redirect’ 状态码等于 HTTP 状态 302.
SeeOther303该 ‘See Other’ 状态码等于 HTTP 状态 303.
RedirectMethod303该 ‘Redirect’ 状态码等于 HTTP 状态 303.
NotModified304该 ‘Not Modified’ 状态码等于 HTTP 状态 304.
UseProxy305等于 HTTP 状态 305 的 ‘Use Proxy’ 状态码。
未使用306等于 HTTP 状态 306 的 ‘Switch Proxy’ 状态码。
TemporaryRedirect307等于 HTTP 状态 307 的 ‘Temporary Redirect’ 状态码。
RedirectKeepVerb307等于 HTTP 状态 307 的 ‘Redirect Keep Verb’ 状态码。
PermanentRedirect308等于 HTTP 状态 308 的 ‘Permanent Redirect’ 状态码。
BadRequest400等于 HTTP 状态 400 的 ‘Bad Request’ 状态码。
Unauthorized401等于 HTTP 状态 401 的 ‘Unauthorized’ 状态码。
PaymentRequired402等于 HTTP 状态 402 的 ‘Payment Required’ 状态码。
Forbidden403等于 HTTP 状态 403 的 ‘Forbidden’ 状态码。
NotFound404‘Not Found’ 状态码等于 HTTP 状态 404。
MethodNotAllowed405‘Method Not Allowed’ 状态码等于 HTTP 状态 405。
NotAcceptable406‘Not Acceptable’ 状态码等于 HTTP 状态 406。
ProxyAuthenticationRequired407‘Proxy Authentication Required’ 状态码等于 HTTP 状态 407。
RequestTimeout408‘Request Timeout’ 状态码等于 HTTP 状态 408。
Conflict409‘Conflict’ 状态码等于 HTTP 状态 409。
Gone410‘Gone’ 状态码等于 HTTP 状态 410。
LengthRequired411‘Length Required’ 状态码等于 HTTP 状态 411。
PreconditionFailed412该 ‘Precondition Failed’ 状态码等于 HTTP 状态 412。
RequestEntityTooLarge413该 ‘Request Entity Too Large’ 状态码等于 HTTP 状态 413。
RequestUriTooLong414该 ‘Request-URI Too Long’ 状态码等于 HTTP 状态 414。
UnsupportedMediaType415该 ‘Unsupported Media Type’ 状态码等于 HTTP 状态 415。
RequestedRangeNotSatisfiable416该 ‘Requested Range Not Satisfiable’ 状态码等于 HTTP 状态 416。
ExpectationFailed417该 ‘Expectation Failed’ 状态码等于 HTTP 状态 417。
UpgradeRequired426该 ‘Upgrade Required’ 状态码等于 HTTP 状态 426。
InternalServerError500该 ‘Internal Server Error’ 状态码等于 HTTP 状态 500。
NotImplemented501等同于 HTTP 状态码 501 的 ‘未实现’ 状态码。
BadGateway502等同于 HTTP 状态码 502 的 ‘错误网关’ 状态码。
ServiceUnavailable503等同于 HTTP 状态码 503 的 ‘服务不可用’ 状态码。
GatewayTimeout504等同于 HTTP 状态码 504 的 ‘网关超时’ 状态码。
HttpVersionNotSupported505等同于 HTTP 状态码 505 的 ‘HTTP Version 不受支持’ 状态码。

另见