matlab.net.http.StatusCode 类
包: matlab.net.http
HTTP 响应中的状态代码
描述
StatusCode
枚举类为状态代码提供标识符。以下列表来自 2018-09-21 版本的 IANA HTTP 状态代码注册表 https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml。
整数表示 形式 | 枚举成员名称 | 整数表示 形式 | 枚举成员名称 | 整数表示 形式 | 枚举成员名称 |
---|---|---|---|---|---|
100 | Continue | 400 | BadRequest | 500 | InternalServerError |
101 | SwitchingProtocols | 401 | Unauthorized | 501 | NotImplemented |
102 | Processing | 402 | PaymentRequired | 502 | BadGateway |
103 | EarlyHints | 403 | Forbidden | 503 | ServiceUnavailable |
200 | OK | 404 | NotFound | 504 | GatewayTimeout |
201 | Created | 405 | MethodNotAllowed | 505 | HTTPVersionNotSupported |
202 | Accepted | 406 | NotAcceptable | 506 | VariantAlsoNegotiates |
203 | NonAuthoritativeInformation | 407 | ProxyAuthenticationRequired | 507 | InsufficientStorage |
204 | NoContent | 408 | RequestTimeout | 508 | LoopDetected |
205 | ResetContent | 409 | Conflict | 509 | Unassigned |
206 | PartialContent | 410 | Gone | 510 | NotExtended |
207 | MultiStatus | 411 | LengthRequired | 511 | HTTPVersionNotSupported |
208 | AlreadyReported | 412 | PreconditionFailed | 451 | UnavailableForLegalReasons |
226 | IMUsed | 413 | PayloadTooLarge | ||
414 | URITooLong | ||||
300 | MultipleChoices | 415 | UnsupportedMediaType | ||
301 | MovedPermanently | 416 | RangeNotSatisfiable | ||
302 | Found | 417 | ExpectationFailed | ||
303 | SeeOther | 421 | MisdirectedRequest | ||
304 | NotModified | 422 | UnprocessableEntity | ||
305 | UseProxy | 423 | Locked | ||
306 | SwitchProxy | 424 | FailedDependency | ||
307 | TemporaryRedirect | 426 | UpgradeRequired | ||
308 | PermanentRedirect | 428 | PreconditionRequired | ||
429 | TooManyRequests | ||||
431 | RequestHeaderFieldsTooLarge |
方法
示例
版本历史记录
在 R2016b 中推出