KRACOEUS-7940

- Updated code to fix exception 
can you not hardcode the status code here? I know this is hardcoded in the java class but it is better to get it from there than hardcode here. Please see if you can fix within an hr, if not possible, I will merge.