Creating A "Down For Maintenance" Page Using Application.cfc

<cffunction
	name="OnRequestStart"
	access="public"
	returntype="boolean"
	output="true"
	hint="Fires at the beginning of a page requested before the requested template is processed.">
 
	<!--- Define arguments. --->
	<cfargument
		name="TargetPage"
		type="string"
		required="true"
		hint="The template that was requested by the user."
		/>
 
	<!--- Define the local scope. --->
	<cfset var LOCAL = StructNew() />
 
 
	<!--- Set header code. --->
	<cfheader
		statuscode="503"
		statustext="Service Temporarily Unavailable"
		/>
 
	<!--- Set retry time. --->
	<cfheader
		name="retry-after"
		value="3600"
		/>
 
 
	<h1>
		Down For Maintenance
	</h1>
 
	<p>
		The web site is current down for maintenance and will
		be back up shortly. Sorry for the inconvenience.
	</p>
 
 
	<!---
		By returning false, the rest of the page
		rendering will hault.
	--->
	<cfreturn false />
</cffunction>

For Cut-and-Paste