In relation to the Sample app created via this ticket https://ortussolutions.atlassian.net/browse/COLDBOX-457
When this app runs via command box 2.x the embedded Lucee server inflates the properties of the Response.cfc model into the Variables scope.
However, on CF11 (update 5) the properties are not placed into the variables scope directly and thus the getDataPacket() function throws an error when trying to access the variables error and errorcode.
This is fixed by adding them to the variables scope in the init function
I'll see if I can find time for a pull request if this is the preferred way to manually map the properties to the variables scope for the response model. The javacast seems to clear up slight discrepancies with the error code being "quoted" by the response as a string rather than an integer.