error => {
                  const responseDiv = document.getElementById('testRequestResponse');
                  responseDiv.innerHTML = `<span class="error">[${response.status} ${response.statusText}]</span>: ${error.message || error.error.message}`;
                  responseDiv.style.display = 'block';
                  throw new Error(error);
                });
              }
              return response.json();
            })
            .then((result) => {
              const responseDiv = docume