That's not the code you posted before? :/
Anyhow, I tested this:
<cfscript>
header statuscode=500 statustext="Foo";
</cfscript>
And this:
<cfheader statuscode="500" statustext="Foo"/>
And for both of them I get expected response headers:
HTTP/1.1 500 Foo
Date: Sun, 22 Jul 2012 18:15:07 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 2
Server: Jetty(8.1.2.v20120308)
That was with Railo 4 beta, and I also checked v3.3.1
If I generate an unhandled error, I don't get it, I get this:
HTTP/1.1 500 Server Error
Date: Sun, 22 Jul 2012 18:16:25 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 6560
Server: Jetty(8.1.2.v20120308)
Given that the wording was different to yours, that made me wonder if Tomcat might be doing something different to Jetty, so I tested against Tomcat 6 / Railo 3.3.1 and I get:
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Content-Length: 2
Date: Sun, 22 Jul 2012 18:20:17 GMT
Connection: close
and
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Content-Length: 5176
Date: Sun, 22 Jul 2012 18:20:29 GMT
Connection: close
So, there we go - Tomcat is masking the status text.
Not sure if that's a Tomcat bug or if there's a config option for it somewhere...