error codes as settings constants