Fix reopen ticket and add result codes for non-existent tickets.