Skip to content

Commit

Permalink
[zh-cn]: translate 4xx HTTP response for zh-CN (#16388)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonren0403 authored Oct 8, 2023
1 parent 07a68f5 commit 0469853
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
20 changes: 20 additions & 0 deletions files/zh-cn/web/http/status/421/index.md
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}}
37 changes: 37 additions & 0 deletions files/zh-cn/web/http/status/423/index.md
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}}
26 changes: 26 additions & 0 deletions files/zh-cn/web/http/status/424/index.md
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)

0 comments on commit 0469853

Please sign in to comment.