Imagine the following inside of a controller where a user can click a Cancel button. var canceller q.defer() http.get("/api/movies/slow/2", timeoutAs most of your blogs posts have closed the comments section, I am barging in here, out of context, to tell you that your AngularJS abstractions That means only the first call to get(/api/user/2) will fire an HTTP GET and AngularJS will cache the result.query method sends an HTTP GET request to server and returns empty array. This empty array gets populated when the response arrives from server. The response had HTTP status code 403. and page is displayed as following: AngularJS Use http to invoke RESTful APIs.All the getter setters are there in the classes but still I am getting this error. Also, no java layer invocation for GET method is happening. Short note about AngularJSs methods to send AJAX requests with http and ngResource.http is an AngularJS service for reading data from remote servers. http .get(url) is the function to use for reading server data. The AngularJS http request is returning me 404,though the above java method is executing successfully. I should get 200 instead of 404 as the server response, Could you kindly check this. AngularJS http.get() method accepts 2 parameters url configuration settings. From which server page we are going to get data that page path is the value to url param.