Attribute response::error_string

← Back to Class response



Module urlClass response → error_string

Description

This attribute stores HTTP request error string

field error_string


Usage Example

import url
 
response = url.get("https://invalid-address")
writer(response.error_string)   ' Prints "Couldn't resolve host name"
 
response = url.get("https://example.com/")
writer(response.error_string)   ' Prints ""