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.
然而不管采用哪种选择,都需要从对服务器上返回的状态代码开始入手进行处理。
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.就是这些了,代码如下
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请求的响应没有任何内容,但是有不同的状态码。
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.
从命令的输出可以看到,如果获得的状态代码与预期的代码不匹配,将返回一个错误。
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状态代码,但有可能在目录之下还有文件。
Status code the server returns to the browser to indicate its success or failure in generating the request.
服务器向浏览器返回的表明请求成功还是失败的状态码。
A RESTful service typically provides two meaningful components in its responses: the response body itself and a status code.
RESTful服务通常在它的响应中提供两个有意义的组件:响应主体本身和一个状态码。
Let's say you add a new status code, waituntiltomorrow, and apply it to one item in the todo_foreign table (table 1, with the foreign keys).
假设您添加了一个新的状态码waituntiltomorrow,并将它应用到todo_foreign表(包含外键的表1)中的某一项。
The handler supplies a valid file status code if an exception occurs.
Handlder 程序在异常发生时提供一个有效的文件状态码。
The first Jersey client example is to send a GET request to fetch all the contacts and print the response status code and response content. See Listing 11.
第一个Jersey客户端示例将发送GET请求获取所有联系人并打印响应状态码和响应内容,参见清单 11。
If the variable is set, set — query returns a status code of 0, indicating that no error occurred; otherwise, it returns a 1.
如果已经设置了此变量,set——query返回状态码0,这表示没有出现错误;否则,返回1。
For the BYE response, we need to accept the BYE response, create a response with the same status code, and send it to the peer uas.
对于BYE响应,我们需要接受BYE响应,使用同一状态代码创建响应,并将其发送到对等uas。
应用推荐