dynamic abortNotAcceptable([body = 'Not Acceptable'])

Source

abortNotAcceptable([body = 'Not Acceptable']) {
  throw new HttpNotAcceptableException(body);
}