simplified HandleCode to {OK, FAIL}