Its actually not a 404 HTTP error, its a CF error.
For example, if you were to go to http://www.iqdevs.net/howd
Main Topics
Browse All TopicsHowdy,
I'm looking to catch the error that coldfusion MX 7 throws when a file is not found on the server. Please note that this is not a CFINCLUDE error. This is when a filename was perhaps misspelled in the URL. I would like to catch this error and run a particular page instead of the standard error the CF outputs.
My CF hosting service does not give me full access to the CF administrator control panel, so I was hoping there was something nifty I could do in application.cfm or something like that. If it can be done only in CF admin, I would at least like to know what settings have to be set in order for this to work properly.
Thanks,
Travis
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Its actually not a 404 HTTP error, its a CF error.
For example, if you were to go to http://www.iqdevs.net/howd
I've used <CFERROR>, unfourtunately, <CFERROR> only catches Exception errors.
Did a little research of at livedocs.macromedia.com. Apparently there are 3 basic types of errors: (1) Exceptions, (2) Missing template errors, and (3) Form field data validation. My error is number 2, the missing template error. Unfourtunately, cferror will not catch this. I tried using cferror with all its different types w/o any luck.
From what i have read, i'm thinking the only solution to this problem is to go thru CFADMIN (which i don't have access to).
"In MS IIS you just need to select option "Check that file exists" to prevent execution of IIS extension. There could be similar option in Apache you running."
Short of being able to have access to the CF Administrator and specifying a site-wide error handler, this is going to be your best solution. The problem is that your ISP's web server is handing the request off to ColdFusion without first checking to see if the file in question exists. The first thing CF checks for is the existence of the file, and it throws an error immediately without executing a single line of code. There's nothing you could put in your Application.cfc file that would catch the error, as it would not be executed.
If you can get your ISP to select the "Check file exists" option (or whatever the equivalent is in their web server software), you can also probably get them to specify a custom 404 error handler for you. At that point, you can do anything you like when someone types a bad URL.
Business Accounts
Answer for Membership
by: INSDivision6Posted on 2005-04-23 at 18:40:49ID: 13852204
Sounds like you want catch 404 HTTP error? Dependently on the Internet server you are running, you can set a page that is being called when "file not found" condition is encountered, instead of default error page. If you provide a ".cfm" page, you will be able to do something, when this error occurs.