you can implement an AfterTestCase listener and retrieve the testcase status with testCaseContext.getTestCaseStatus().
testCaseContext.getTestCaseStatus()
see: https://docs.katalon.com/katalon-studio/videos/test_listeners_test_hooks.html
see also related topics: