The return value of stat() is handled properly.
1) HttpClient::send() returns error codes.
2) HttpResponseEntity is introduced.