I want to check if a page returns the status code 401. Is this possible?
Here is my try, but it only returns 0.
$.ajax({ url: \"http://my-ip/tes
$.ajax({ url: "http://my-ip/test/test.php", data: {}, error: function(xhr, statusText, errorThrown){alert(xhr.status);} });