If it is a denial based on a protected category of identity of the customer, that is illegal discrimination. For instance a bakery offering wedding cakes cannot deny a wedding cake for a gay marriage, but can deny a request for a cake with a specific message explicitly endorsing gay marriage.
Be the first to reply to this answer.