Handling response messages and errors in ticket