Jquery how to display error message when having 401 Unauthorized error?
<p>How do I display an error message for the 401 Unauthorized error?</p>

<p>My jquery:</p>

<pre><code>$('.ero').click(function(e) {
    e.stopPropagation();
    e.preventDefault();
            $.ajax({
        type: 'POST',
        url: '/stem_op/3',
        success:function(msg){
        $('.warning').fadeIn(500).css({
        display: 'block',
        position: 'absolute',
        left: position.left + 50,
        top: position.top - 25
    }).append(msg).addClass("active")}
        });      
});
</code></pre>
