dynamic abortMisdirectedRequest([body = 'Misdirected Request'])

Source

abortMisdirectedRequest([body = 'Misdirected Request']) {
  throw new HttpMisdirectedRequestException(body);
}