简体   繁体   English

HTTP状态码490是什么意思?

[英]What does HTTP status code 490 mean?

I'm using Firefox with Selenium IDE for testing a Java application. 我正在使用带有Selenium IDE的Firefox来测试Java应用程序。 If the session expires and I launch a test, I get this http status code: 490 . 如果会话过期,并且我启动了测试,则会得到以下http状态码: 490

Here is a snippet that illustrates how I get this http status code. 这是说明如何获取此http状态代码的代码段。

var request = new XMLHttpRequest();
request.open('GET', url, false);

// ...

request.send(null);

if (request.status === 200) {
    // ...
} else {
    alert('Something bad happen!\n(' + request.status + ') ' + request.statusText);
}

The alert dialog box shows something like this: 警报对话框显示如下内容:

 Something bad happen!
 (490) 490

This is not a standard HTTP status codes . 这不是标准的HTTP状态代码

It could mean anything depending on the implementation of the application you are making this request to. 根据您要向其发出请求的应用程序的实现,这可能意味着任何事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM