I have this code in AngularJS:
$http({
  url: my_url,
  method: "GET",
  data: null,
  headers: {
    "Content-Type": "application/json",
    "my-token": "mytoken",
  }
}).then(function(response, err) {
  console.log(response)
  console.log(err)
});
When the URL is correct and the status is 200, the response is displayed with status 200. But I want now to test with a wrong Url, then nothing is displayed, neither response nor error, so how to detect if there is no response?
 
     
     
    