Return Message as Flow Output Field On Error

Hello,
I would like to send a message back to the request in the event of an error. Can I also work with the flow output field there or how should I do it in the event of an error?
Greetings,
Fabian