Handling common errors while making Ajax requests | Hacker News Reader