title: Display error message on HTTP error 500
body: <p>I have a program that runs an HTTP GET request to the YouTube servers to retrieve a users playlist. If the user has entered their account name wrong a 500 error is thrown in the console and nothing loads on screen.</p>
  
  <p>How can I catch the 500 error and display an error, say in an alert or something similar?</p>