# Change HTTP status code as needed

**URL:** https://talk.remobjects.com/t/change-http-status-code-as-needed/24681
**Category:** Remoting SDK
**Tags:** delphi, httpapi
**Created:** [April 30, 2021, 4:23pm UTC](https://talk.remobjects.com/t/change-http-status-code-as-needed/24681 "2021-04-30T16:23:31Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![techprogeticait](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@techprogeticait](https://talk.remobjects.com/u/techprogeticait)
#### Post date: [May 5, 2021, 1:54pm UTC](https://talk.remobjects.com/t/change-http-status-code-as-needed/24681/6 "2021-05-05T13:54:02Z")

</div>

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.

---

_[View the full topic](https://talk.remobjects.com/t/change-http-status-code-as-needed/24681)._
