Thanks to visit codestin.com Credit goes to docs.ruby-lang.org
Raised on HTTP session failure
StringIO having the received data
StringIO