Prevent push with atlassian-connect bitbucket server

Hi,
is there any way to prevent a push made by the user for an atlassian-connect app and send back a message to the user console?

Thanks!