JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<script src="http://raw.github.com/appendto/jquery-mockjax/master/jquery.mockjax.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<script>
$.mockjax({
url: '/noResponse',
status: 204,
responseTime: 0,
responseText: ''
});
$.ajax({
contentType : 'application/json',
url: '/noResponse',
success:function() {
$('body').append('OK');
},
error:function(xhr, status, msg) {
$('body').append('Request failed for status ' + xhr.status + ' with message ' + msg);
}
});
</script>
</body>
</html>