ghttpGetResponseStatus
Get the response's status string and status code.
- const char * ghttpGetResponseStatus(
- GHTTPRequest request,
- int * statusCode );
Routine | Required Header | Distribution |
---|---|---|
ghttpGetResponseStatus | <ghttp.h> | SDKZIP |
Return Value
The response's status string.
Parameters
- request
- [in] A valid request object
- statusCode
- [out] Status code.
Remarks
Can only be used if the state has passed GHTTPReceivingStatus.
The status string is a user-readable representation of the result of the request.
The status code is a 3 digit number which can be used to get more details on the result of the request. There are 5 possible values for the first digit:
1xx: Informational
2xx: Success
3xx: Redirection
4xx: Client Error
5xx: Server Error
See RFC2616 (HTTP 1.1) and any follow-up RFCs for more information on specific codes.
Section Reference: Gamespy HTTP SDK
See Also: ghttpGetState