Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Observable((subscriber: Subscriber) => subscriber.error(
new Response(createErrorResponse(
interceptorArgs.requestInfo.req, 500, error
)))
);
return new Observable((subscriber: Subscriber) => subscriber.error(
new Response(createErrorResponse(
interceptorArgs.requestInfo.req, 404, 'Not found'
)))
);