It takes minimal effort to ensure that the server not only finished with a request, but returned an "Everything is OK" status code.
它花费了最小的努力来确保服务器不但完成了一个请求,而且还返回了一个“一切良好”的状态代码。
After successfully processing this request, the service returns a response with the status code 201.
成功处理这个请求之后,服务将返回一个包含状态码201的响应。
After successfully processing this request, the service returns a response with the status code 200.
成功处理这个请求之后,该服务返回一个包含状态码200的响应。
Ensure your applications return the proper status code.
确保应用程序返回正确的状态码。
If a user is not authenticated when trying to access this resource, the user will receive a 401 status code and the application can provide a special error handler to deal with that condition.
如果用户在尝试访问这个资源时还没有经过身份验证,那么用户会收到401状态码,应用程序可以提供一个特殊的错误处理函数来处理这种情况。
After successfully processing this request, the service returns a response with a status code 201.
在成功地处理这个请求之后,服务在响应中返回状态码201。
In keeping with the prior examples, we will display the referrer and resource of a hit, but only when the request has a status code of 200 (and referrer is available).
与前面的示例保持一致的同时,我们将显示访问的提交者和资源,但是只有在请求的状态码为200(并且提交者可用)时才如此。
With a ready state of 4 and a status code of 200, you're ready to process the server's data and that data should be what you asked for (and not an error or other problematic piece of information).
如果就绪状态是4而且状态码是 200,就可以处理服务器的数据了,而且这些数据应该就是要求的数据(而不是错误或者其他有问题的信息)。
And because every UNIX command returns a status code reflecting success or failure, you can use any command as a conditional — not just the test operators.
而且由于每个UNIX命令都返回一个指示成功或失败的状态代码,因此,您可以使用任何命令作为“条件”——而不仅仅是使用测试操作符。
Whatever choices you make, though, it begins with handling the status code returned from the server.
然而不管采用哪种选择,都需要从对服务器上返回的状态代码开始入手进行处理。
The second test would supply a status code indicating a failed retrieval.
第二次测试将提供指示失败检索的状态代码。
What we may - and should - do is simply return an HTTP 304 status code.
我们可能而且应该做的仅仅是返回一个HTTP 304状态码。
The rest of the code is elementary. If no results are returned, set the status code to 0; otherwise, set it to 1. Output the initial XML, the XML for each message, and the final XML.
剩下的代码就相当基础,如果没有结果,就设置状态代码为0,否则,设置为1,输出最初的xml,每个消息的xml以及最终的xml.就是这些了,代码如下
In those cases, you won't get a status code at all.
在这些情况中,您根本就不会得到状态代码。
To simplify the code, assign the ICONS the same status code retrieved by the REST syndication.
要简化代码,请分配通过REST联合检索的相同状态代码的图标。
As I mentioned above, a status code of 1 will represent a successful request with new messages, 2 as successful without new messages.
就如我上面提到的,一个状态值为1则标示新信息请求成功,2则表示请求成功但是没有新信息。
When this URL is invoked, it implicitly returns a 200 status code when it succeeds.
在调用这个URL时,如果成功,就会隐式地返回状态码200。
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文件)已删除。
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.
每个发送给服务器的请求都记录下来,并且指定了一处状态码,这个码告诉服务器如何响应请求。
The kernel takes care of moving the process to sleeping state, waiting for the socket to be ready for writing, reading the TCP status code, and so on.
内核负责将进程转移到睡眠状态、等待套接字做好写入的准备、读取TCP状态代码,等等。
Empty response with different status code: the response of the PUT request will not have any content, but will have a different status code.
空响应带有不同的状态码:PUT请求的响应没有任何内容,但是有不同的状态码。
A 201 status code (CREATED) is a perfect response to a successful POST request.
状态码201 (CREATED)是一个成功POST请求的完美响应。
Or maybe it should be a status code only, and use the deleted date as the done date.
或者只使用状态码,并使用删除日期作为完成日期。
As you can see from the output of the command, it only returns an error if it gets a status code that doesn't match what is expected.
从命令的输出可以看到,如果获得的状态代码与预期的代码不匹配,将返回一个错误。
In this case, a successful retrieval is indicated by a status code of "7".
在本例中,状态代码“7”指示成功的检索。
Otherwise, you will get a status code 401 for your reply.
否则,就会获得状态码401的回复。
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状态代码,但有可能在目录之下还有文件。
If it is true, only the status code and the headers are returned.
为真的话,只返回状态代码和头部。
Status code the server returns to the browser to indicate its success or failure in generating the request.
服务器向浏览器返回的表明请求成功还是失败的状态码。
应用推荐