JSFiddle - React, Tailwind, and code Playground

JavaScript

$.ajax({
    url: "/echo/xml/",
    type: "POST",
    data: {
        //Set an empty response to see the error
        xml: "<response></response>"   
    },
    dataType:"text xml",
    success: function(xml, textStatus, xhr) {
        console.log(arguments);
        console.log('>> textStatus', textStatus);
        console.log('>> status', xhr.status);
    },
    complete: function(xhr, textStatus) {
        console.log('>>> complete textStatus', textStatus);
        console.log('>>> complete status', xhr.status);
    } 
});