Could some one explain why my code doesn't detect a 404 error?

Could some one explain why my code doesn't detect a 404 error?
0

#1

It’s driving me mad. Nothing seems to work…


#2

try this , after success
,error: function(){
console.log(“Error”)
$(“body”).append("

" + streamer + "has either deleted their account or doesn’t exist!
");