Retrying 400 status code HEAD requests with GET