Removing subscribe method from REST API and refining code/error logs