Handle authentication and invalid settings errors