Edit - In the wild, a 503 usually means that the person who built out the site did not do a very good job of estimating traffic. An empty response can return 503 if the server is overwhelmed with connections.
In other words, a 503 more likely than not has nothing to do with code and has everything to do with provisioning enough resources for the amount of traffic received. Unfortunately, that's a tough thing to get right, particularly when you land on the front page of Hacker News during extremely busy times.