README
Extracts error message from http response
This module provides httpError
service - function that extracts error string from http response object
Usage
- Module name:
ado.http-error
- Service name:
httpError
$http.get('/url').catch(function (res) {
var errStr = httpError(res);
console.log(errStr);
});