view source
AngularJS Will Parse JSON Payloads In Non-2xx HTTP Responses
This is probably an AngularJS feature that you're already using; but, you may not be cognizant of the fact that it's happening. When you make an HTTP request with AngularJS, the request and response goes through a promise chain that applies a series of pre and post transformations .
Advertisement