Global error handling for 401.