dynamic abortGone([body = 'Gone'])

Source

abortGone([body = 'Gone']) {
  throw new HttpGoneException(body);
}