http: fail early with bad-request reply if URL is not valid