fixed an invalid domain and reason code when an invalid api key is returned