Add error checks and harmonize behavior of the `set_icon` method.
HTTPClient.get_response_body_length()