Specifying a 401 status code to show API Key
xmlHttp.onload = function () {
let apiKeyContainer = document.getElementById('apiKeyContainer');
- if (xmlHttp.status !== 200) {
+ if (xmlHttp.status === 401) {
document.getElementById('apiKey').remove();
let inputNode = document.createElement('input');
inputNode.setAttribute('id', 'apiKey');
