/**
  * @param ServerRequestInterface $request
  * @param ResponseInterface $response
  * @param string[] $methods
  *
  * @return ResponseInterface
  */
 public function handleNotAllowed(ServerRequestInterface $request, ResponseInterface $response, array $methods)
 {
     if ($level = $this->shouldLog('not-allowed')) {
         $message = sprintf('%s on %s', $request->getMethod(), $request->getRequestTarget());
         $this->logEvent('not-allowed', $message, $level);
     }
     return $this->handler->handleNotAllowed($request, $response, $methods);
 }