added handling for `strictSSL` and better error output for non-standard responses