Display error message when attempting to create a duplicate resource