确保应用程序返回正确的状态码。
否则,就会获得状态码401的回复。
指定返回的数据和状态码。
ILER PG参考手册定义了这些状态码。
The status codes are defined in the ILE RPG Reference Manual.
如果没有的话,将返回状态码。
其他状态码都表示请求出错。
或者只使用状态码,并使用删除日期作为完成日期。
Or maybe it should be a status code only, and use the deleted date as the done date.
这是因为只要连接成功,最后的退出状态码就是零。
This is because as long as the connection is successful, the last exit status will be zero.
服务器向浏览器返回的表明请求成功还是失败的状态码。
Status code the server returns to the browser to indicate its success or failure in generating the request.
在成功地处理这个请求之后,服务在响应中返回状态码201。
After successfully processing this request, the service returns a response with a status code 201.
我们可能而且应该做的仅仅是返回一个HTTP 304状态码。
What we may - and should - do is simply return an HTTP 304 status code.
在调用这个URL时,如果成功,就会隐式地返回状态码200。
When this URL is invoked, it implicitly returns a 200 status code when it succeeds.
我们可以从HTTPPOST调用接收的响应对象读取状态码。
We can read the status code in the response object received from the HTTP POST call. We can also get the entry for the created property sheet type from the response.
成功处理这个请求之后,服务将返回一个包含状态码201的响应。
After successfully processing this request, the service returns a response with the status code 201.
成功处理这个请求之后,该服务返回一个包含状态码200的响应。
After successfully processing this request, the service returns a response with the status code 200.
Handlder 程序在异常发生时提供一个有效的文件状态码。
The handler supplies a valid file status code if an exception occurs.
为调用应用程序提供了特定于应用程序的信息,比如状态码和出错页面。
Application-specific information, like status codes and error pages, are provided for the calling application.
状态码201 (CREATED)是一个成功POST请求的完美响应。
A 201 status code (CREATED) is a perfect response to a successful POST request.
如果成功,服务器将用一个201 (OK)状态码和修订后的进行响应。
If successful, the server will respond with a 201 (OK) status code and the revised. Figure 4 illustrates the likely output.
空响应带有不同的状态码:PUT请求的响应没有任何内容,但是有不同的状态码。
Empty response with different status code: the response of the PUT request will not have any content, but will have a different status code.
服务器状态行包括在服务器上运行的协议版本号、状态码和表示返回代码的文字消息。
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.
万一指定的资源不可用,返回404 (NotFound)状态码是一个不错的主意。
In case the specified resource is not available, it's a good idea to return a 404 (not Found) status code.
RESTful服务通常在它的响应中提供两个有意义的组件:响应主体本身和一个状态码。
A RESTful service typically provides two meaningful components in its responses: the response body itself and a status code.
应用程序不发送正确的状态码看似没什么害处,但是在启用边缘服务器时这会成为真正的问题。
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.
在这种情况下,我要讨论错误处理的三个方面:状态码,结构异常处理和错误检测。
In this section, I 'll describe three aspects of error handling: status codes, structured exception handling, and bug checks.
每个发送给服务器的请求都记录下来,并且指定了一处状态码,这个码告诉服务器如何响应请求。
Every request to a server is recorded and assigned a status code, which describes how the server responded.
与其他使用HTTP的REST服务一样,TwitterAPI使用一组状态码和错误消息。
Like other REST services that use HTTP, the Twitter API sports a set of status codes and error messages.
该选项让你能够对响应细节进行更多的控制。你可以设置状态码、添加HTTP报头等等。
This option gives you more control over the details of the response. You can set the status code, add HTTP headers, and so forth.
如果已经设置了此变量,set——query返回状态码0,这表示没有出现错误;否则,返回1。
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。
If the variable is set, set — query returns a status code of 0, indicating that no error occurred; otherwise, it returns a 1.
应用推荐