EnsureSuccessStatusCode()
HttpResponseMessage::EnsureSuccessStatusCode() method
Checks the status code. HttpRequestException will be thrown when the status code doesn’t belong to 2xx.
System::SharedPtr<HttpResponseMessage> System::Net::Http::HttpResponseMessage::EnsureSuccessStatusCode()
Return Value
The current instance.
Exceptions
| Exception | Description |
|---|---|
| HttpRequestException | When the status code doesn’t belong to 2xx. |
See Also
- Typedef SharedPtr
- Class HttpResponseMessage
- Namespace System::Net::Http
- Library Aspose.Slides