title: Can I generate a 500 or 501 error from JavaScript?
body: <p>I want to test an error landing page that handles HTTP 500 and 501 responses.  </p>
  
  <p>I can do that easily in my ASP.NET code, but I'd like to avoid deploying server-side code in this scenario.</p>
  
  <p>Is it possible to trigger an HTTP 500 or 501 from JavaScript?  If so, how?</p>