dynamic abortBadGateway([body = 'Bad Gateway'])

Source

abortBadGateway([body = 'Bad Gateway']) {
  throw new HttpBadGatewayException(body);
}