Fixed http responses and added miles invoker