One quick note about the HttpResponse interceptor: the code as shown which looks for a 401 won’t…
Ryan Chenkie

Any Idea how I modify the response before returning to service? I would like to do something like below

if (event instanceof HttpResponse) { 
// do stuff with response if you want

if (typeof(ajaxResponse.TDATA) !== ‘undefined’) {
 if (ajaxResponse.BSUCCESS === true) {
 return ajaxResponse.TDATA;
 } else {
 console.log(‘server error, but 200 response’);
} else {

return ajaxResponse;


One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.