alphagov/frontend — comment on commit 16dbd64b3a9bce89a50c48684c5c519d7ce6c4c9
File: app/controllers/root_controller.rb line 139
By craigw:

There's not really that much effort, it's a fairly common pattern (although it's implemented in slightly different ways by different people):

http://robots.thoughtbot.com/post/12179019201/design-patterns-in-the-wild-null-object

I'd like to push this into the `GdsApi` code so that if we timeout or the endpoint 404s or whatever we always get an object with a known interface (which we don't have even in the happy case because we construct the object from the returned JSON).