public function __construct(HttpMethod $method, $route)
 {
     parent::__construct(HttpStatusCode::METHOD_NOT_ALLOWED(), $method, $route);
 }
 public function __construct(HttpMethod $method, $route, array $problems, $previous = null)
 {
     parent::__construct(HttpStatusCode::BAD_REQUEST(), $method, $route, $previous);
     $this->problems = $problems;
 }
 public function __construct(HttpMethod $method, $route, $previous = null)
 {
     parent::__construct(HttpStatusCode::NOT_FOUND(), $method, $route, $previous);
 }