Switch from private access.
Redirect user to /unauthorize page if error is a 401. Refs #426.