I am wanting to receive a more detailed response on a domain through ajax.
Currently I have the code:
$.ajax({
url: domain,
type: "POST",
data: {
//Set an empty response to see the error
xml: "<response></response>"
},
datatype: 'application/json',
complete: function(xhr, textStatus) {
console.log(xhr.status);
}
});
For example if I have a URL that does 'not exist' I get the error report:
0
And if I have a URL that is behind a redirect I get the error report:
0
But these are completely different issues.
And I am sure there are many other examples.
I am doing this to test whether DNS settings have been put in place. As with the second case the DNS settings could be working but there is just a redirect on that domain?