For example, I have an action which responds to an json ajax request on my site.
Recently I found a lot of errors caused by search engine bot request to this endpoint with html
request.
What's the best practice for dealing with this? Should I just respond with error format or I should create a page just because that search engine bot would crawl? And I am using Rails, specific recommendations would be nicer.
Thanks a lot.