original_string: public function unrecognizedCall($unrecognizedPath = '')
      {
          $this->start();
  
          if ($unrecognizedPath === '') {
              $message = t('Resource not specified');
          } else {
              $message = t(/*i18n: %1$s is a path, %2$s is an HTTP method*/'Unknown resource %1$s for %2$s method', $unrecognizedPath, $this->request->getMethod());
          }
          $result = $this->buildErrorResponse(
              $message,
              Response::HTTP_NOT_FOUND
          );
  
          return $this->finish($result);
      }
code: public function unrecognizedCall($unrecognizedPath = '')
      {
          $this->start();
  
          if ($unrecognizedPath === '') {
              $message = t('Resource not specified');
          } else {
              $message = t(/*i18n: %1$s is a path, %2$s is an HTTP method*/'Unknown resource %1$s for %2$s method', $unrecognizedPath, $this->request->getMethod());
          }
          $result = $this->buildErrorResponse(
              $message,
              Response::HTTP_NOT_FOUND
          );
  
          return $this->finish($result);
      }
code_tokens: public function unrecognizedCall ( $ unrecognizedPath = '' ) { $ this -> start ( ) ; if ( $ unrecognizedPath === '' ) { $ message = t ( 'Resource not specified' ) ; } else { $ message = t ( /*i18n: %1$s is a path, %2$s is an HTTP method*/ 'Unknown resource %1$s for %2$s method' , $ unrecognizedPath , $ this -> request -> getMethod ( ) ) ; } $ result = $ this -> buildErrorResponse ( $ message , Response :: HTTP_NOT_FOUND ) ; return $ this -> finish ( $ result ) ; }
docstring: What to do if the entry point is not recognized.
  
  @param string $unrecognizedPath
  
  @return Response
docstring_tokens: What to do if the entry point is not recognized .