dynamic abortMethodNotAllowed([body = 'Method Not Allowed'])

Source

abortMethodNotAllowed([body = 'Method Not Allowed']) {
  throw new HttpMethodNotAllowedException(body);
}