Exam4Training

Which code snippet will complete the requirement?

Given a job step configured in the steptype.json, a developer needs to add a custom status code “No_FILES_FOUND”.

Which code snippet will complete the requirement?
A . var status = {success: ‘OK’. Message: ‘NO_FILES_FOUND’}; return status;
B. var status = require(‘dw/system/status’);
return new Status(Status.OK, ‘NO_FILES_FOUND’);
C. this.status = ‘NO_FILES_FOUND’
return this;
D. return ‘NO_FILES_FOUND

Answer: B

Explanation:

Exit mobile version