message: chore(origin-organization-irec-api): check irec connection state and throw correct HTTP exception
diff: @@ -2,7 +2,8 @@ import {
  BadRequestException,
  ForbiddenException,
  Injectable,
  - NotFoundException
  + NotFoundException,
  + UnauthorizedException
  } from '@nestjs/common';
  import { CommandBus } from '@nestjs/cqrs';
  import { ConfigService } from '@nestjs/config';
  @@ -145,6 +146,12 @@ export class IrecService implements IIrecService {
  throw new ForbiddenException('User does not have an IREC connection');
  }
  + if (!irecConnection.active) {
  + throw new UnauthorizedException(
  + 'IREC connection is no longer active, please consider update IREC connection credentials'
  + );
  + }
  +
  const accessToken: AccessTokens = {
  accessToken: irecConnection.accessToken,
  refreshToken: irecConnection.refreshToken,
  