Why don't you check for the URL existence first - maybe with CFHTTP, set a
variable, and do a CFTHROW if the var doesn't contain what you expect?
----- Original Message -----
From: "Duane Boudreau" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 10:08 AM
Subject: Trapping Errors from CFLocation
> Is it possible to trap the "HTTP/1.0 404 Object Not Found" error when
> cflocation goes to a page that does not exist? I tried this (CF4.5) with
no
> luck:
>
> <cftry>
> <cflocation url="http://someurl">
> <cfcatch type="Any">
> Sorry the requested site could not be loaded
> </cfcatch>
> </cftry>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists