FYI: have pretty much given up on this. Tried using cfcontent reset=yes in 
my site-wide error handler before calling cfheader and attempting to set 
the status code to 200. It didn't work, so I'm assuming some data has 
already been sent from the CF response buffer to the client by the time my 
error handler is invoked.

Will retrofit error handling on the site next week, starting with CFERROR 
in the Application.cfm files (I inherited the site, it's a disaster - hence 
the wish to mess with the HTTP responses)


Mark


>I've only been using CF 5 for a few months (new employer, old one was
>sticking with AOLServer/ADP and Tcl  - that's why I left ;), and have only
>just noticed that when CF 5 encounters an error while processing a template
>it returns HTTP status code "500 Internal Server Error", with the error
>details in the response body.
>
>CF 4.5.1 SP2 (and as far as I recall all other previous versions) return
>200 OK to the client with the error message in the response body.
>
>I've tested this by putting the same CF template with a simple error
>resolving a parameter on three machines and sending requests from a command
>prompt. The machines are all running Win2K, one server running CF 5,
>another server running CF4.5.1 SP2 and my own workstation running CF5. They
>all returned the pretty much the same response except for the status code,
>with the CF5 versions returning 500 and CF 4.5.1 returning 200. (I've
>included the response headers for each request the end of the message)
>
>I want to return 200 OK to clients if CF encounters an error because it
>means that IE users, who by default have "show friendly HTTP error
>messages" on, don't get that dreaded "Page could not be displayed" error.
>
>I tried to force a 200 status for requests for errors occurred while
>processing templates by setting a site-wide error handler and using
>CFHEADER to set the status to 200 and text to OK, but the response from the
>server was still 500 Internal Server Error.
>
>Anyone know how to get around this? Or am I just doing something dumb?
>
>Thanks
>
>Mark
>
>Response headers for various requests...
>========================================
>CF5 on Win2K Server:
>HTTP/1.1 500 Internal Server Error
>Server: Microsoft-IIS/5.0
>Date: Fri, 10 May 2002 08:21:05 GMT
>Content-type: text/html
>Page-Completion-Status: Normal
>Page-Completion-Status: Abnormal
>
>CF4.5.1 SP2 on Win2K Server:
>HTTP/1.1 200 OK
>Server: Microsoft-IIS/5.0
>Date: Fri, 10 May 2002 08:23:13 GMT
>Content-type: text/html
>Page-Completion-Status: Normal
>Page-Completion-Status: Abnormal
>
>CF5 on Win2K Pro:
>HTTP/1.1 500 Internal Server Error
>Server: Microsoft-IIS/5.0
>Date: Fri, 10 May 2002 08:21:47 GMT
>Content-type: text/html
>Page-Completion-Status: Abnormal
>
>note: the response body was the same for all responses
>
>
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to