{ callback, errorCode, hasValue = false }
the logic to run and ensure there is no error on it, otherwise, catch that error message
the error code to show when the given callback didn't perform
if the callback code will return a value
the API response envelope as a JSON string: { code, isSuccess, message, value? }
Method that will set the ApiResponse structure