Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param string $path Path that were not found.
  */
 public function __construct(ServerRequestInterface $request)
 {
     parent::__construct("Route for '{$request->getRequestTarget()}' is not found.", 404, "The requested page is not found on this server." . " Please check the URL for typos or contact server administrator for more info.");
 }
 /**
  * Constructor.
  *
  * @param string $method Method that were not allowed.
  */
 public function __construct(ServerRequestInterface $request)
 {
     parent::__construct("Bad request with '{$request->getMethod()}' method, at '{$request->getRequestTarget()}' location.", 400, "It seems that your request is malformed in some way." . " Try again or contact server administrator for more info.");
 }
 /**
  * Constructor.
  *
  * @param string $method Method that were not allowed.
  */
 public function __construct(ServerRequestInterface $request)
 {
     parent::__construct("Method '{$request->getMethod()}' is not allowed at the '{$request->getRequestTarget()}' location.", 405, "A request method is not supported for the requested page." . " Try again or contact server administrator for more info.");
 }