Hi @Brandon Boone ,
Welcome to Microsoft Q&A! Thanks for posting the question.
I see that you are trying to get the 401 errors to log in Azure Application Insights to take reactive measures based on it. Please note that 401 (and other 4XX) errors fall under Client error category, i.e., it indicates that the error has occurred, and the client browser/application appears to be at fault (in current case, the client has supplied the incorrect function key).
In case you would like to track these errors as well, you can use:
Client Side monitoring, if the request comes from a web page, OR
ApplicationInsights SDK for tracking them from your application.
Please let us know if you have any questions.
---
Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.