Added a timeout in the responseStatusCode function
fixed http version 1.0