HTTPRequest.status_code#

property HTTPRequest.status_code: HTTPStatusCode

Get the status code of the response.

Returns:

The status code of the response.

Return type:

HTTPStatusCode

Raises:

RuntimeError – If the request is not completed yet.