catch HTTP request timeout

And set timeout seconds (3 secs).