in callouts/java/service-callout/src/main/java/service/ServiceCalloutTools.java [195:205]
public static void denyCallout(HeadersResponse.Builder context, String msg) {
if (msg == null || msg.isEmpty()) {
msg = "Callout DENIED.";
}
// Log the warning message
logger.info(msg);
// Use the StreamObserver (or other context) to abort the call
throw Status.PERMISSION_DENIED.withDescription(msg).asRuntimeException();
}