diff --git a/ui/src/apiAuth.ts b/ui/src/apiAuth.ts index 4dbe9753..3001ae64 100644 --- a/ui/src/apiAuth.ts +++ b/ui/src/apiAuth.ts @@ -20,7 +20,7 @@ export const initAxios = (currentUser: CurrentUser, snack: SnackReporter) => { currentUser.tryAuthenticate().then(() => snack('Could not complete request.')); } - if (status === 400) { + if (status === 400 || status === 403 || status === 500) { snack(error.response.data.error + ': ' + error.response.data.errorDescription); }