When HttpStatusCodeException exception raiesed? : when i use below code , what is the case to get HttpStatusCodeException exception .

ResponseEntity<Object> response = restTemplate.exchange(builder.build().encode().toUri(), HttpMethod.GET, entity, Object.class);

Please can anyone help out ????????