added error tests for http client