开发者

Why do we set status response?

In many tutorials, i Have seen the code below :开发者_如何学Python

response.setStatus( ...);

What is the purpose of this?


Assuming that response refers to an HTTP response, the setStatus() method is used to let the user-agent know whether the result of the HTTP request is OK, or if there was some kind of Error.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜