Define errors in a single place