log http code 4xx as warning instead of error