# Common Response for HTTP Calls

**URL:** <https://forums.rocket.chat/t/common-response-for-http-calls/13093>\
**Category:** Community Support\
**Tags:** rocketchat-apps\
**Created:** [January 24, 2022, 5:42pm UTC](https://forums.rocket.chat/t/common-response-for-http-calls/13093 "2022-01-24T17:42:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucasfe4nor](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@lucasfe4nor](https://forums.rocket.chat/u/lucasfe4nor)\
**Post date:** [January 24, 2022, 5:42pm UTC](https://forums.rocket.chat/t/common-response-for-http-calls/13093/1 "2022-01-24T17:42:15Z")

</div>

### Description

HI. What is the response pattern of successful or failed HTTP calls?

### Server Setup Information

- Version of Rocket.Chat Server: 3.10.7
- NodeJS Version: 14

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 25, 2022, 12:34pm UTC](https://forums.rocket.chat/t/common-response-for-http-calls/13093/2 "2022-01-25T12:34:43Z")

</div>

hi! Welcome to our forums.

It should be both the status code and then the **success** key.

All endpoints should have this to indicate if things were fine.

Check it out:

> **[Agent Info](https://developer.rocket.chat/reference/api/rest-api/endpoints/omnichannel/livechat-endpoints/livechat-agent/agent)**
>
> Retrieves the current Livechat agent data.

```auto
{
    "agent": {
        "_id": "XycfA5CetCPuEjqxw",
        "emails": [
            {
                "address": "faria@rocket.chat",
                "verified": true
            }
        ],
        "status": "online",
        "name": "Faria",
        "username": "faria.masood",
        "livechat": {
            "maxNumberSimultaneousChat": "5"
        }
    },
    "success": true
}

```

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 25, 2022, 12:35pm UTC](https://forums.rocket.chat/t/common-response-for-http-calls/13093/3 "2022-01-25T12:35:57Z")

</div>

Also, please, consider **upgrading to latest version.**

Not only to have access to new features but also for security matters.
