Is preparing a mock response in javascript is the efficient
approach?Actually, I have a scenario where I need to prepare a success
and error mock response based on the query param.Can anyone please
suggest which approach is more efficient?Approach 1....