Better handling and instrumentation of 401 errors.