REVIEW (2.7) [NEXUS-6189] Backport 2.7 send error page 401 from browser request