而不是使用HTTP响应代码:500。
如果成功的话,您将获得响应代码200。
该特性可以验证响应代码,以及与响应相关的内容。
This feature can verify the response codes and the content associated with responses.
无效媒体类型应返回一个HTTP响应代码406。
An invalid media type should return an HTTP response code of 406.
最后是用来发送406响应代码的呈现(图16)。
Finally, a renderer for sending a 406 response code (Figure 16).
该请求已成功(HTTP响应代码 200)。
如果成功,OBEX服务器会用成功响应代码160进行响应。
If successful, the OBEX server will respond with the success response code 160.
编辑器右边的格子发生改变,以显示响应代码验证测试元素细节。
The pane on the right in the editor changes to show the response code verification test element details.
如果您得到的响应代码是200,那么PUT操作将会更改资源。
If you get a response code of 200, then the resource was modified by the PUT action.
对于本文中的测试,它们只为100Trying响应代码添加。
For this test scenario, they are added only for the 100 Trying response code.
在此场景中,服务器可以发送响应代码为100的Trying响应。
In this scenario, it is proper for the server to send a Trying response with a response code of 100.
如果您得到的响应代码是201,那么POST操作就会创建一个新的资源。
If you get a response code of 201, then a new resource was created by the POST action.
理论上,连接到远程服务器并测试4xx或5xx响应代码是件很简单的事。
In theory it would be a simple matter to connect to the remote server and test for a 4xx or 5xx response code.
ExactExpectedcode值是将在响应中验证的响应代码。
The Exact Expected code value is the response code that will be verified in the response.
Response:一般HTTP响应,包含带有不同响应代码的定制内容。
Response: A generic HTTP response that can contain your custom content with a different response code.
NET报告异常时,它设置HTTP响应代码以反映错误的性质。
NET reports an exception, it sets the HTTP response code to reflect the nature of the error.
如果未发现任何内容,该应用程序将返回适当的HTTP响应代码:406不可接受。
If none is found, the application returns the appropriate HTTP Response code: 406 Not Acceptable.
它可以检查,以为预期的响应代码添加上限与下限,该响应代码为代码验证提供了范围值。
It can be unchecked to add lower and upper boundaries for the expected response code that provide a range value for the response code verification.
这个操作发回一个响应,我们可以使用这个响应检查响应代码,查看请求是否成功(没有显示)。
This operation sends back a response, which gives you the opportunity to check the response code to see whether or not it was successful (not shown).
将会显示所有生成的HTTP请求、响应代码和接收的消息、接收来源域、文件大小、发送时间点。
It will show you all of the HTTP requests made, the response code and message received, the domain it was retrieved from, the file size, and the timeline of the page load.
在第二种情况下,MCA已对COMMIT采取了行动,但是未能传输响应代码,因此将不存在要回滚的事务。
In the second case, where the MCA has acted on the COMMIT but could not deliver the response code, there is no transaction to roll back.
在此类设备发生错误时,请求返回HTTP响应代码200,指示成功,但页的正文包含错误信息。
When an error occurs for such a device, the request returns the HTTP response code 200, indicating success, but the body of the page contains the error message.
清单9是Rubyon Rails中的一个简短例子,清单中的闭包用于为一个HTTP请求编写响应代码。
Listing 9, a quick example from Ruby on Rails, shows a closure that is used to code the response of an HTTP request.
在这里,您从WebSphereApplicationServer中使用验证特性,来验证响应代码。
In this scenario, you use the verification feature to verify response codes from WebSphere Application Server.
所接收到的响应于对应用服务器的请求的响应代码被处理以确定在用户简档中是否定义了匹配的响应代码。
Response codes received in response to requests to an application server are processed to determine if a matching response code is defined in the user profile.
CherryPy应用程序方法通常情况下会以字符串的形式返回响应的正文,但是有时需要您设置附加的HTTP标题,进行一个重定向,或者改变HTTP响应代码。
A CherryPy application method typically returns the body of the response as a string, but sometimes you need to set additional HTTP headers, do a redirect, or change the HTTP response code.
@Response.created(uri).build():构建新的 URI用于新创建的联系人(/contacts/{id})并设置响应代码(201/created)。
Response.created(uri).build(): Builds a new URI for the newly created contact as /contacts/{id} and set the response code as 201/created.
此页面显示所有的URI模式,此模式可用于操作资源类型以及关于处理请求和响应的代码的必要信息。
This page shows all of the URI patterns that can be used to manipulate the resource type and the information necessary to code that handles requests and responses.
另一方面,ISAPI筛选器还包含可以对IIS引发的事件进行响应的代码。
ISAPI filters, on the other hand, contain code to respond to events raised by IIS.
另一方面,ISAPI筛选器还包含可以对IIS引发的事件进行响应的代码。
ISAPI filters, on the other hand, contain code to respond to events raised by IIS.
应用推荐