Get message when lock pin not set

I have a custom app that pushes PINs to Yale locks multiple times per day. I would like to send a message to the ST app when the pin in NOT successfully set. Is there a way to do that? That way i can audit how often I’m having pin push issues.