Hi Ramana,
In Job definition under return code mapping to completed field set it as 0-0004 (if you want to accept return code till 4) this can be extended to any number if you want 0-0008(accepted from 0-8)
If you want to accept only 0 and 4 you can say as 0, 4
If you want to accept only 0 and 8 you can say as 0, 8
This mark the job as completed if the return falls under this.
Please mark as answer if this answers your question
Regards,
Ravindranath Reddy