|
|
@ -56,8 +56,8 @@ public class PolarisFeignClient implements Client {
|
|
|
|
final ServiceCallResult resultRequest = createServiceCallResult(request);
|
|
|
|
final ServiceCallResult resultRequest = createServiceCallResult(request);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Response response = delegate.execute(request, options);
|
|
|
|
Response response = delegate.execute(request, options);
|
|
|
|
// HTTP code greater than 400 is an exception
|
|
|
|
// HTTP code greater than 500 is an exception
|
|
|
|
if (response.status() >= 400) {
|
|
|
|
if (response.status() >= 500) {
|
|
|
|
resultRequest.setRetStatus(RetStatus.RetFail);
|
|
|
|
resultRequest.setRetStatus(RetStatus.RetFail);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return response;
|
|
|
|
return response;
|
|
|
|