Impossible to say what is going on based on the code provided alone but I would suspect that you've got a buggy $http interceptor somewhere (an interceptor that doesn't reject promises properly on failed responses).
Cheers, Pawel On Tue, Jan 20, 2015 at 11:28 AM, Elavarasan A <[email protected]> wrote: > HI > > I am new to angular and i have implemented a login service and my code is > here http://jsfiddle.net/r3yx530f/ > > The problem is even when the server is responding with 4xx error the succes > function is executed. > > I recently updated from 1.2.27 to 1.3.9 previously i did not have this > problem. > > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. -- AngularJS book: http://www.packtpub.com/angularjs-web-application-development/book Looking for bootstrap-based widget library for AngularJS? http://angular-ui.github.com/bootstrap/ -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
