@router.patch('/applicants/{candidate_id}', name='users:applicants:process', status_code=status.HTTP_201_CREATED)
async def process_applicant_request(candidate_id: int, request_status: ApplicantStatus, current_user: UserPrivate=Depends(get_current_user)) -> str:
    try:
        return syft_user_messages.process_applicant_request(current_user=current_user, candidate_id=candidate_id, status=request_status.status)
    except Exception as err:
        logger.error(err)
        raise_generic_private_error()
@router.patch('/applicants/{candidate_id}', name='users:applicants:process', status_code=status.HTTP_201_CREATED)
async def process_applicant_request(candidate_id: int, request_status: ApplicantStatus, current_user: UserPrivate=Depends(get_current_user)) -> str:
    try:
        return syft_user_messages.process_applicant_request(current_user=current_user, candidate_id=candidate_id, status=request_status.status)
    except Exception as err:
        logger.error(err)
        raise_generic_private_error()