Updated ApiResponse to work with Response's callback