How to create an ephemeral "Failure" message?

Hi,

I see that there is a way to create a “Success” message which appears and then disappears (st.success(“Message”)). Is there a way to create a “Failure” message in the similar way (perhaps in Red)?

Thank you!

@Negmat_Mullodzhanov try st.error()

Works - thank you Kerelu!