Get status text from code