ify(requestData)
            })
            .then(response => response.json())
            .then(data => {
                console.log('Success:', data);
                // Format and display the response data
                responseDataDiv.innerHTML = formatResponse(data);
            })
            .catch((error) => {
                console.error('Error:', error);
                // Display the error in the div
                responseDataDiv.textContent = `Error: ${error}`;
            });
        });
