Skip to content

Commit 00ab876

Browse files
committed
Handle status === 403 if site is stopped
1 parent b86c700 commit 00ab876

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

AzureFunctions.AngularClient/src/app/shared/no-cors-http-service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ export class NoCorsHttpService {
155155
this._aiService.trackEvent(ErrorIds.passThroughApiError, content);
156156
throw error;
157157
}
158+
} else if (e.status === 403 && e.text().indexOf('This web app is stopped')) {
159+
e.isHandled = true;
158160
}
159161
throw e;
160162
});

0 commit comments

Comments
 (0)