It takes minimal effort to ensure that the server not only finished with a request, but returned an "Everything is OK" status code.
它花费了最小的努力来确保服务器不但完成了一个请求,而且还返回了一个“一切良好”的状态代码。
Whatever choices you make, though, it begins with handling the status code returned from the server.
然而不管采用哪种选择,都需要从对服务器上返回的状态代码开始入手进行处理。
The next step in this example is not only to send back the updated item list, but also to provide status information letting the client know what the server did as shown in the following code listing.
本例的下一步不仅包括回发更新的项目列表,还包括提供状态信息,以使客户机了解服务器进行了怎样的操作,如以下代码清单所示。
Failing to send the proper status code from your applications may seem harmless, but it can turn out to be a real problem when trying to enable to the edge server.
应用程序不发送正确的状态码看似没什么害处,但是在启用边缘服务器时这会成为真正的问题。
Every request to a server is recorded and assigned a status code, which describes how the server responded.
每个发送给服务器的请求都记录下来,并且指定了一处状态码,这个码告诉服务器如何响应请求。
Status code the server returns to the browser to indicate its success or failure in generating the request.
服务器向浏览器返回的表明请求成功还是失败的状态码。
If successful, the server will respond with a 201 (OK) status code and the revised. Figure 4 illustrates the likely output.
如果成功,服务器将用一个201 (OK)状态码和修订后的进行响应。
In the case where the Web server is available, this status code should be 200 (though in rare cases it might be a 30x or 40x code as well).
在Web服务器可用的情况下,这个状态码应该是200(虽然在罕见情况下可能会是30x或40x)。
The server status line includes the protocol version number running on the server, the status code, and a text message representing the return code. Below are several examples of valid status lines.
服务器状态行包括在服务器上运行的协议版本号、状态码和表示返回代码的文字消息。
The status attribute indicates the HTTP RESPONSE STATUS code (for example, 200) sent back from the server.
status属性指出从服务器返回的HTTPRESPONSE STATUS码(例如,200)。
You've probably figured out by now that the "bad" auto refresh code would create a significant workload on the server if lots of people want to see the status.
您可能已经发现,如果有很多人想查看数据库状态,那么 “糟糕” 的自动刷新代码将在服务器上产生很大的工作负载。
You should see a status code of 404, which confirms that the server has stopped and its artifacts (PID file) have been deleted.
应该会看到404代码状态,此代码确认服务器已停止且其工件(PID文件)已删除。
If the server does not wish to make this information available to the client, the status code 404 (not Found) can be used instead.
如果服务器不希望这个信息提供给客户,状态代码404(未找到)可以用来代替。
In the example above, the server returned a status code of 200. This is the standard success code for HTTP.
在下面这个例子中,服务器会返回一个200的状态代码。这是HTTP的标准成功代码。
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead.
如果服务器不想给客户端提供此信息,可以使用状态码403(禁止)来代替。
If the status code received from the server is not 101, the client handles the response per HTTP [RFC2616] procedures.
假如从服务端获取的状态不是101,客户端在每一个http过程处理响应。
If the status code received from the server is not 101, the client handles the response per HTTP [RFC2616] procedures.
假如从服务端获取的状态不是101,客户端在每一个http过程处理响应。
应用推荐