my AJAX GET request
$http({
method: 'GET',
url: '/4740886&sz=320x50&c=1'
}).then(function successCallback(response) {
$scope.resp = response;
}, function errorCallback(response) {
console.log(response);
});
gives this error :
data: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot GET /4740886&sz=320x50&c=1</pre>\n</body>\n</html>\n"
status: 404
statusText: “Not Found”