Set error messages with error keys