You don't actually need echo, you can use return from the rewrite module (which is compiled in by default).
return 503 "<h1>Maintenance</h1><p>will be back soon!</p>"; return 503 "<h1>Maintenance</h1><p>will be back soon!</p>";