A ColdFusion user asked me for a way to programmatically determine if a URL exists, so I threw together this UDF. It uses to attempt to retrieve a specified URL (not resolving any internal URLs, and not throwing an error upon failure). If an HTTP status code 404 is returned then the UDF returns false, otherwise it returns true. The code is not just checking for status code 200 (or 2xx, for that matter), and this means that codes like 401 (unauthorized) and 403 (forbidden) will return true (these status codes do not necessarily mean that the URL does not exist). Updated as per Steve's sugestion and Gus' important feedback.