服务端异常大全
| Unknown | unknown | 0 |
发生未知错误。 |
| CertificateCommonNameIsIncorrect | certificateCommonNameIsIncorrect | 1 |
SSL 证书公用名与 Web 地址不匹配。 |
| CertificateExpired | certificateExpired | 2 |
SSL 证书已过期。 |
| CertificateContainsErrors | certificateContainsErrors | 3 |
SSL 证书包含错误。 |
| CertificateRevoked | certificateRevoked | 4 |
SSL 证书已吊销。 |
| CertificateIsInvalid | certificateIsInvalid | 5 |
SSL 证书无效。 |
| ServerUnreachable | serverUnreachable | 6 |
服务器未响应。 |
| Timeout | timeout | 7 |
连接已超时。 |
| ErrorHttpInvalidServerResponse | errorHttpInvalidServerResponse | 8 |
返回服务器无效或无法识别响应。 |
| ConnectionAborted | connectionAborted | 9 |
连接已中止。 |
| ConnectionReset | connectionReset | 10 |
连接已重置。 |
| Disconnected | disconnected | 11 |
连接已结束。 |
| HttpToHttpsOnRedirection | httpToHttpsOnRedirection | 12 |
从一个位置重定向到一个安全位置。 |
| HttpsToHttpOnRedirection | httpsToHttpOnRedirection | 13 |
从一个安全位置重定向到一个不安全位置。 |
| CannotConnect | cannotConnect | 14 |
无法连接到目标。 |
| HostNameNotResolved | hostNameNotResolved | 15 |
无法解析提供的主机名。 |
| OperationCanceled | operationCanceled | 16 |
操作已取消。 |
| RedirectFailed | redirectFailed | 17 |
请求重定向失败。 |
| UnexpectedStatusCode | unexpectedStatusCode | 18 |
指示收到失败的意外状态代码。 |
| UnexpectedRedirection | unexpectedRedirection | 19 |
请求被意外地重定向。 |
| UnexpectedClientError | unexpectedClientError | 20 |
发生了意外客户端错误。 |
| UnexpectedServerError | unexpectedServerError | 21 |
发生了意外服务器端错误。 |
| MultipleChoices | multipleChoices | 300 |
表示需要进行较低级别选择的高级分组的请求的 URL。 |
| MovedPermanently | movedPermanently | 301 |
已处理和任何将来的请求应定向到 URI。 |
| Found | found | 302 |
找到资源,但在与该请求中包含的一个不同位置可用。 |
| SeeOther | seeOther | 303 |
通过 GET 方法可以将请求的响应位于另一个 URI 下。 |
| NotModified | notModified | 304 |
指示自上一次请求起,未修改该资源。 |
| UseProxy | useProxy | 305 |
必须通过位置字段生成的代理访问请求的资源。 |
| TemporaryRedirect | temporaryRedirect | 307 |
请求的资源临时位于不同的 URI 下。 |
| BadRequest | badRequest | 400 |
由于语法错误请求无法执行。 |
| Unauthorized | unauthorized | 401 |
身份验证失败或尚未提供凭据。 |
| PaymentRequired | paymentRequired | 402 |
保留。 |
| Forbidden | forbidden | 403 |
服务器已拒绝该请求。 |
| NotFound | notFound | 404 |
未能找到请求的资源,但可以在将来重新可用。 |
| MethodNotAllowed | methodNotAllowed | 405 |
使用该资源不支持的请求方法请求资源。 |
| NotAcceptable | notAcceptable | 406 |
根据该请求发送的 Accept 标头,请求的资源只能生成不可接受的目录。 |
| ProxyAuthenticationRequired | proxyAuthenticationRequired | 407 |
客户端必须首先通过代理对其本身进行验证。 |
| RequestTimeout | requestTimeout | 408 |
服务器的请求等待时间超时。 |
| Conflict | conflict | 409 |
指示由于全球冲突而无法处理请求。 |
| Gone | gone | 410 |
指示请求的资源不再可用,并不可再次可用。 |
| LengthRequired | lengthRequired | 411 |
请求未指定其内容的长度,该内容为请求资源所需。 |
| PreconditionFailed | preconditionFailed | 412 |
服务器不满足请求方放在请求上的某个前置条件。 |
| RequestEntityTooLarge | requestEntityTooLarge | 413 |
请求大于有意或可以处理的服务器。 |
| RequestUriTooLong | requestUriTooLong | 414 |
提供的 URI 长度超过了服务器可处理的最大长度。 |
| UnsupportedMediaType | unsupportedMediaType | 415 |
请求实体具有服务器或资源不支持的媒体类型。 |
| RequestedRangeNotSatisfiable | requestedRangeNotSatisfiable | 416 |
客户端已要求文件的某部分,但服务器无法提供该部分。 |
| ExpectationFailed | expectationFailed | 417 |
服务器无法满足 Expect 请求标头字段的要求。 |
| InternalServerError | internalServerError | 500 |
一般性错误消息,在没有其他特定消息合适的情况下给出。 |
| NotImplemented | notImplemented | 501 |
服务器不能识别请求方法,也不能执行请求。 |
| BadGateway | badGateway | 502 |
服务器作为网关或代理,并且接收来自上游服务器的无效响应。 |
| ServiceUnavailable | serviceUnavailable | 503 |
服务器当前不可用。 |
| GatewayTimeout | gatewayTimeout | 504 |
服务器作为网关或代理,并且不接收来自上游服务器的及时响应。 |
| HttpVersionNotSupported | httpVersionNotSupported | 505 |
服务器不支持用于该请求的 HTTP 协议版本。 |
邮箱:steven9801@163.com
QQ: 48039387
浙公网安备 33010602011771号