title: Get different status description when accessing the same site using HTTP vs HTTPS
body: <p>I experienced a weird thing when deploying my ASP.NET website to Azure WebApp.</p>
  
  <p>In the controller, I returned 401 with error text "Please sign in".</p>
  
  <p>But when I access that controller from client side using HTTP and HTTPS, in both cases I can get the 401 response, but in the HTTP case, the status text is "Please sign in", but in the HTTPS case, the status text is "error".</p>
  
  <p>For example, </p>
  
  <pre><code>jQuery.ajax({
              url: "/someUrl",
              type: "GET",
              contentType: 'application/json; charset=utf-8',
              dataType: "json",
              success: doSomething,
              error: function (jqXHR, textStatus, errorThrown) {
                  // The following line outputs different text when using HTTP vs HTTPS
                  // HTTP: Please sign in
                  // HTTPS: error
                  console.log(jqXHR.statusText); 
              },
  
              timeout: 180000,
          });
  </code></pre>
  
  <p>May I know what might cause this problem?</p>