Change HTTP status code as needed

Thank you Evgeny,

but I’d like to use a TROComplex as HTTPApi result instead of Binary and, for error conditions, raising an Exception using the TROComplex class, too.

The solution I found seems to work for me.

Thank you very much.