#!perl use strict; use warnings; use Web::Machine; =pod This demostrates how you can easily handle situations like the site being down in a reasonably elegant way. touch site_down rm site_down =cut { package YAPC::NA::2012::Example110::Resource; use strict; use warnings; use parent 'Web::Machine::Resource'; sub content_types_provided { [ { 'text/html' => 'to_html' }, ] } sub to_html { '