read http status code earlier