-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zh-cn]: translate 4xx HTTP response for zh-CN (#16388)
- Loading branch information
1 parent
07a68f5
commit 0469853
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: 421 Misdirected Request | ||
slug: Web/HTTP/Status/421 | ||
l10n: | ||
sourceCommit: 50a5ce565b2fa0b988b3f5ff90ea4b24b13e4b9d | ||
--- | ||
|
||
{{HTTPSidebar}} | ||
|
||
HTTP **`421 Misdirected Request`** 客户端错误响应状态码表明,请求被定向到一个无法生成响应的服务器。如果连接被重复使用或选择了其他服务,就有可能出现这种情况。 | ||
|
||
## 状态 | ||
|
||
```http | ||
421 Misdirected Request | ||
``` | ||
|
||
## 规范 | ||
|
||
{{Specifications}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: 423 Locked | ||
slug: Web/HTTP/Status/423 | ||
l10n: | ||
sourceCommit: 50a5ce565b2fa0b988b3f5ff90ea4b24b13e4b9d | ||
--- | ||
|
||
{{HTTPSidebar}} | ||
|
||
> **备注:** *锁定*资源的能力仅限于某些 {{Glossary("WebDAV")}} 服务器。访问网页的浏览器永远不会遇到这种状态代码;在发生错误的情况下,浏览器会将其作为通用的 `400` 状态代码处理。 | ||
HTTP **`423 Locked`** 错误响应状态码表示暂定目标资源被*锁定*,即无法访问。其内容应包含一些 WebDAV XML 格式的信息。 | ||
|
||
## 状态 | ||
|
||
```http | ||
423 Locked | ||
``` | ||
|
||
### 示例 | ||
|
||
```http | ||
HTTP/1.1 423 Locked | ||
Content-Type: application/xml; charset="utf-8" | ||
Content-Length: xxxx | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<D:error xmlns:D="DAV:"> | ||
<D:lock-token-submitted> | ||
<D:href>/workspace/webdav/</D:href> | ||
</D:lock-token-submitted> | ||
</D:error> | ||
``` | ||
|
||
## 规范 | ||
|
||
{{Specifications}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: 424 Failed Dependency | ||
slug: Web/HTTP/Status/424 | ||
l10n: | ||
sourceCommit: 505984d77363cbce87d0b3e2e0607eb662b99a9c | ||
--- | ||
|
||
{{HTTPSidebar}} | ||
|
||
HTTP **`424 Failed Dependency`** 客户端错误响应代码表明,由于请求的操作依赖于另一个操作,且该操作失败,因此无法在资源上执行该方法。 | ||
|
||
普通 web 服务器通常不会返回此状态代码。但其他一些协议,如 {{Glossary("WebDAV")}} 可以返回该状态代码。例如,在 {{Glossary("WebDAV")}} 中,如果发出了 `PROPPATCH` 请求,其中一条命令失败,那么其他命令也会自动以 `424 Failed Dependency` 的形式失败。 | ||
|
||
## 状态 | ||
|
||
```http | ||
424 Failed Dependency | ||
``` | ||
|
||
## 规范 | ||
|
||
{{Specifications}} | ||
|
||
## 参见 | ||
|
||
- {{HTTPStatus("403")}}(Forbidden) |