0

I'm using Firefox with Selenium IDE for testing a Java application. If the session expires and I launch a test, I get this http status code: 490.

Here is a snippet that illustrates how I get this http status code.

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
Stephan
  • 41,764
  • 65
  • 238
  • 329
  • Not sure why you are sending null, sending a blank object (like Document formData etc ) isn't that an option ? https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#send%28%29 – Lav Nov 26 '14 at 10:48
  • @Lav I have read dozen of codes with sending null. Check this SO answer: http://stackoverflow.com/questions/15123839/why-do-we-pass-null-to-xmlhttprequest-send – Stephan Nov 26 '14 at 10:53

1 Answers1

6

This is not a standard HTTP status codes.

It could mean anything depending on the implementation of the application you are making this request to.

jchampemont
  • 2,673
  • 16
  • 19