|
@@ -217,12 +217,14 @@ public class CustomExceptionHandler {
|
|
|
if (alwaysOK) {
|
|
|
if (t instanceof ApiFlowLimitedException) {
|
|
|
httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
|
|
|
+ printStackTrace = false;
|
|
|
} else {
|
|
|
httpStatus = HttpStatus.OK;
|
|
|
}
|
|
|
} else {
|
|
|
if (t instanceof ApiFlowLimitedException) {
|
|
|
httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
|
|
|
+ printStackTrace = false;
|
|
|
} else {
|
|
|
httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
|
|
|
}
|