Shawn McKee wrote: > Based on what happens during the processing of a page I may need to hand a > 404 error back to the user. When I create a page that has nothing but this > on it: > > <cfheader statuscode="404" statustext="Not Found"> > <cfabort> > > I get a blank page, not a 404. More specifically I get an open html, open > body, close html and close body tags. > > What's wrong?
You are not sending an error page. Just because you are sending a 404 statuscode doesn't mean you shouldn't send any HTML :) <cfheader statuscode="404" statustext="Not Found"> <html> <head><title>not found</title></head> <body><h1>Not found</h1></body> </html> <cfabort> Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210408 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

