Added more comments and changed response code in XAML Authorization