Ensure your applications return the proper status code.
确保应用程序返回正确的状态码。
What we may - and should - do is simply return an HTTP 304 status code.
我们可能而且应该做的仅仅是返回一个HTTP 304状态码。
It isn't enough for the root of the directory to return a 404 status code, because it's possible for a directory to return a 404 but still serve out files underneath it.
对于根目录,只返回404状态代码是不够的,因为尽管目录返回404状态代码,但有可能在目录之下还有文件。
Sometimes "deleted" pages may say "404" or "Not found" on the page, but actually return a 200 status code in the page header; so it's good to use a proper header-checking tool to double-check.
有时“已经删除”页面可能会显示“404”或者“没有找到”,但事实上是在页头显示200状态代码;因此最好使用合适的页头检查工具再三核查。
If the user submits an IATA code that cannot be found, I'll return the ever-popular 404 status code not found.
如果用户提交了一个无法找到的IATA代码的话,我将返回一个常见的404状态码NotFound。
Based on the return code from the event delivery, the status of the event in the event table (Figure 7b) is updated, or the event is archived (Figure 7a), or both.
根据事件传递所返回的代码,更新事件表中的事件状态(图7b)或者将该事件存档(图7 b),或者两者都执行。
If the status is not good, then return the appropriate error code.
如果状态不是good,就返回错误代码。
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.
服务器状态行包括在服务器上运行的协议版本号、状态码和表示返回代码的文字消息。
In case the specified resource is not available, it's a good idea to return a 404 (not Found) status code.
万一指定的资源不可用,返回404 (NotFound)状态码是一个不错的主意。
To return specific HTTP response status code and description.
若要返回特定HTTP响应状态代码和说明。
To return 401 status code to indicate unauthorized HTTP request.
要返回401状态代码表示授权的HTTP请求。
For expected state changes, use a return code, sentinel, or special method that returns a status.
对于可预知的状态改变,使用返回代码、标记或者特定的方法返回状态值。
To return 404 status-code to indicate that the requested resource was not found.
要返回404状态代码表示请求的资源没有被发现。
Because the exception has been handled, the event method does not return an HTTP error status code.
因为异常已被处理,所以该事件方法不返回HTTP错误状态代码。
Because the exception has been handled, the event method does not return an HTTP error status code.
因为异常已被处理,所以该事件方法不返回HTTP错误状态代码。
应用推荐