Changes handling of 401 and 403 messages