916729 - Fixed auth failures to return JSON documents containing a
programmatic error code and added client-side exception middleware
support for displaying the proper user message based on the error.