Since you're using the standard deployer functions, this should work with all versions that the current deployer supports.  The only thing to watch out for is CF10, since that needs to trigger a 404 page.