> ## 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](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

HTTP 调用的句柄。

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

HTTP 调用响应的 HTTP 状态代码。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

只能在 HTTP 任务完成后调用 [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) 之后调用此函数。

## 要求

**头文件：** http\_call\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

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


## Related topics

- [HCHttpCallResponseGetStatusCode](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetstatuscode.md)
- [HCHttpCallResponseSetStatusCode](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetstatuscode.md)
- [XblHttpCallGetNetworkErrorCode](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnetworkerrorcode.md)
- [HCHttpCallResponseGetNetworkErrorCode](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
- [XblHttpCallGetHeader](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheader.md)
