public static function create(
        int $statusCode,
        string $message,
        $reason = null,
        string $path = null,
        array $attributes = [],
        $identifier = null
    ): PresentationInterface {
        $error = new ErrorResource($message, $reason, $path, $attributes, $identifier);

        return PresentationFactory::create($statusCode, $error);
    }