Get http response code from client class