return new self( Response::HTTP_NOT_FOUND,
self::API_NOT_EXISTING_RELATION_EXCEPTION,
'Resource at path "{{ path }}" is not an existing relation.',
['path' =>
$path] );
} public static function unsupportedMediaType(string
$contentType): SymfonyHttpException
{ return new UnsupportedMediaTypeHttpException(sprintf('The Content-Type "%s" is unsupported.',
$contentType));
} public static function badRequest(string
$message): SymfonyHttpException
{ return new BadRequestHttpException($message);
} /**
* @param string[] $allow
*/
public static function methodNotAllowed(array
$allow, string
$message): SymfonyHttpException
{