Reserved Parking?

I’m sure we have driven places and seen what we think to be our soon to be parking space only to be greeted with this:

reserved parking?

There are many variations of these adhoc reserved parking spaces for shop owners and their stuff. I’m just wondering on the legality of/guidelines for them