dynamic abortNotFound([body = 'Not Found'])

Source

abortNotFound([body = 'Not Found']) {
  throw new HttpNotFoundException(body);
}