This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with JavaScript Forum

View Course » View Exercise

666 points
4dd2f471b27f9f9542648a671137f563?s=140&d=retro
Submitted by
Karl-Johan
over 3 years ago

Why do i keep getting 244?

Hi! My code looks like this:

var xhr = new XMLHttpRequest();
xhr.open("GET",
"http://www.codecademy.com/doesnt_exist",
false); xhr.send();
console.log(xhr.status);

Even if i change the text in the url to some nonsense i always get 244 as a response, why is that?

EDIT: I tried changing the browser to IE and got 444 instead... that's even more wierd.


0 votes

permalink

How 'bout firefox?

940 points
53936e64548c35cd6a002180_628253785
Submitted by
Risviltsov
about 3 years ago