Consul GUI "Your key has been saved"

I have a backend piece of golang code running on an ubuntu 18.4 VM which watches for edits/create/deletes on the Consul GUI. When I make an edit on the GUI, the GUI responds with “Your key has been saved”. Is it possible for my backend go code to detect a KV Pair which isn’t suitable for my application and change the GUI message to an error and not save the input to the kv store ? Is there an API i can call from the backend go code in such a scenario ?

This issue is resolved. Modified the backend golang code to verify my input before proceeding to save the KV pair