I have element API endpoint which requires specific URL attributes to work.
If I enter directly endpoint URL in the browser, it returns error and error code 500:
{"error":{"code":2,"message":"Invalid argument supplied for foreach()"}}
This is expected behavior, but for some reason, google search console started including endpoint URL in its report. It didnt indexed that site, but showed error:
Server error (5xx)
Maybe there should be some additional HTTP header in such situation that would block google?
I have element API endpoint which requires specific URL attributes to work.
If I enter directly endpoint URL in the browser, it returns error and error code 500:
This is expected behavior, but for some reason, google search console started including endpoint URL in its report. It didnt indexed that site, but showed error:
Maybe there should be some additional HTTP header in such situation that would block google?