> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblHttpCallGetStatusCode

> XblHttpCallGetStatusCode

# XblHttpCallGetStatusCode

取得 HTTP 呼叫回應的 HTTP 狀態碼。

## 語法

```cpp theme={null}
HRESULT XblHttpCallGetStatusCode(  
         XblHttpCallHandle call,  
         uint32_t* statusCode  
)  
```

### 參數

*call*   \_In\_\
類型：[XblHttpCallHandle](/zh-TW/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

HTTP 呼叫的控制代碼。

*statusCode*   \_Out\_\
類型：uint32\_t\*

HTTP 呼叫回應的 HTTP 狀態碼。

### 傳回值

類型：HRESULT

此 API 作業的結果碼。

## 備註

只有在呼叫 [XblHttpCallPerformAsync](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) 且 HTTP 工作完成後，才能呼叫此函式。

## 需求

**標頭：** http\_call\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[http\_call\_c](/zh-TW/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [XblHttpCallGetStatusCode](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetstatuscode.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [HCHttpCallResponseGetStatusCode](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetstatuscode.md)
