Access plugin custom ui from customrecipe.py

Options

Hi!
I've a custom plugin(recipe made into plugin) as well as a custom ui and I'm writing data from dataiku to somewhere else using post request. In case it fails, I want to show in the custom ui that the write has failed. Right now I'm able to handle the exception and show if any error occurs in the job run details. Is there any way to show it in the plugin ui itself?

Setup Info
    Tags
      Help me…