use maxdepth field in config as a global maximum allowed crawl depth for the instance and return API errors when trying a bigger one