Skip to content

Commit e0993ad

Browse files
authored
docs: use HTTP/1.1 201 Created (#10707)
1 parent 6701b19 commit e0993ad

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

docs/en/latest/getting-started/configure-routes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/routes" -X PUT -d '
5252
}'
5353
```
5454

55-
You will receive an `HTTP/1.1 201 OK` response if the route was created successfully.
55+
You will receive an `HTTP/1.1 201 Created` response if the route was created successfully.
5656

5757
## Validate
5858

docs/en/latest/getting-started/key-authentication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/consumers" -X PUT -d '
7474
}'
7575
```
7676

77-
You will receive an `HTTP/1.1 201 OK` response if the consumer was created successfully.
77+
You will receive an `HTTP/1.1 201 Created` response if the consumer was created successfully.
7878

7979
### Enable Authentication
8080

docs/en/latest/getting-started/load-balancing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/routes" -X PUT -d '
4141
}'
4242
```
4343

44-
You will receive an `HTTP/1.1 201 OK` response if the route was created successfully.
44+
You will receive an `HTTP/1.1 201 Created` response if the route was created successfully.
4545

4646
:::info
4747

docs/en/latest/getting-started/rate-limiting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/routes/getting-started-ip" -X PATCH
4343
}'
4444
```
4545

46-
You will receive an `HTTP/1.1 201 OK` response if the plugin was added successfully. The above configuration limits the incoming requests to a maximum of 2 requests within 10 seconds.
46+
You will receive an `HTTP/1.1 201 Created` response if the plugin was added successfully. The above configuration limits the incoming requests to a maximum of 2 requests within 10 seconds.
4747

4848
### Validate
4949

docs/zh/latest/getting-started/configure-routes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/routes" -X PUT -d '
5050
}'
5151
```
5252

53-
如果配置成功,将会返回 `HTTP/1.1 201 OK`
53+
如果配置成功,将会返回 `HTTP/1.1 201 Created`
5454

5555
## 验证
5656

docs/zh/latest/getting-started/key-authentication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/consumers" -X PUT -d '
7474
}'
7575
```
7676

77-
如果消费者创建成功,你将得到返回 `HTTP/1.1 201 OK`
77+
如果消费者创建成功,你将得到返回 `HTTP/1.1 201 Created`
7878

7979
### 启用 Authentication
8080

docs/zh/latest/getting-started/load-balancing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/routes" -X PUT -d '
4141
}'
4242
```
4343

44-
如果路由创建成功,你将会收到返回 `HTTP/1.1 201 OK`
44+
如果路由创建成功,你将会收到返回 `HTTP/1.1 201 Created`
4545

4646
:::info
4747

docs/zh/latest/getting-started/rate-limiting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ curl -i "http://127.0.0.1:9180/apisix/admin/routes/getting-started-ip" -X PATCH
4343
}'
4444
```
4545

46-
如果增加插件成功,你将得到返回 `HTTP/1.1 201 OK`。上述配置将传入流量的速率限制为每 10 秒最多 2 个请求。
46+
如果增加插件成功,你将得到返回 `HTTP/1.1 201 Created`。上述配置将传入流量的速率限制为每 10 秒最多 2 个请求。
4747

4848
### 验证
4949

0 commit comments

Comments
 (0)