Azure AD Authorization (C# 2.2)

Has anyone had any issues with Azure AD authorization support in their application? For our specific purpose we are receiving 200/404 instead of 401. When we do receive 401, it seems to redirect us for the most part. Other times we get an issue saying "Unexpected > in line 1, of ". Quite the odd issue we have been fighting with for a while now.

Ex on that last part: